nikolamilosevic86 / local-genAI-search

Local-GenAI-Search is a generative search engine based on Llama 3, langchain and qdrant that answers questions based on your local files
GNU General Public License v3.0
83 stars 30 forks source link

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #11

Open yanyu2015 opened 3 weeks ago

yanyu2015 commented 3 weeks ago

I launched the web UI using streamlit run user_interface.py. But when I asked a question, I encountered the following error:

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "E:\Pyvenv\pyvi39\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
File "E:\Pyvenv\pyvi39\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec
    exec(code, module.__dict__)
File "E:\literatureAI\local-gen-search\user_interface.py", line 21, in <module>
    answer = json.loads(response.text)["answer"]
File "C:\Users\admin\anaconda3\envs\py39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
File "C:\Users\admin\anaconda3\envs\py39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\admin\anaconda3\envs\py39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None

I make the relevant configurations on two computers and encounter this issue on both. Could anyone please help me solve this problem?