GPT-auto-webscraping
GPT-auto-webscraping copied to clipboard
File not found error
Hi
Thank you for the code. It seems a file is missing that is needed.
FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: C:\Users**.streamlit\secrets.toml
Where can I find this file or how can I create it and what exactly should be in the file?
Thank you
Hi! have you already created the config.ini file? if not, create it on the proyect root folder, you can test if the proyect starts by filling with the follwing content [DEFAULT] API-KEY = {fill the value with your OPENAI API Key}
Please let me know if it's not the case.
Hi! have you already created the config.ini file? if not, create it on the proyect root folder, you can test if the proyect starts by filling with the follwing content [DEFAULT] API-KEY = {fill the value with your OPENAI API Key}
Please let me know if it's not the case.
It was created with the relevant key. It us asking for a file called secrets.toml I created that file in the directory where it is looking for the file as follows: ["LANGCHAIN_API_KEY"] value = "hf_***************"
But now Im`receiving the following error ": 2024-01-07 08:53:44.355 Uncaught app exception Traceback (most recent call last): File "C:\Users\Admin\anaconda3\envs\gptscraping\Lib\site-packages\streamlit\runtime\secrets.py", line 305, in getitem value = self._parse(True)[key] ~~~~~~~~~~~~~~~~~^^^^^ KeyError: 'LANGCHAIN_PROJECT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\anaconda3\envs\gptscraping\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "C:\GPT-auto-webscraping\app.py", line 21, in
Even when i launch the direct hugingface direct link it returns the same errors.
hi @DoLife This error is due our fault, we have an space in huggingface that consume some keys from streamlit secrets
You can delete these lines in the app.py to avoid using that variables, that are to track some information about the use of the space in hf
https://github.com/DataPrismAI/GPT-auto-webscraping/blob/596bda610c0d9ea24d011ac0cd4eef00dafe494d/app.py#L13-L16