vanna-ai / vanna-streamlit

Vanna AI Streamlit App
MIT License
191 stars 79 forks source link

No secrets files found. Valid paths for a secrets.toml file are: xxxxxxxx, #12

Open atang220 opened 4 months ago

atang220 commented 4 months ago

project missing secrets.toml, please give an example

Traceback: File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 542, in _run_script exec(code, module.dict) File "G:\github_workspace\vanna-streamlit-main\app.py", line 41, in questions = generate_questions_cached() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 210, in wrapper return cached_func(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 239, in call return self._get_or_create_cached_value(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 266, in _get_or_create_cached_value return self._handle_cache_miss(cache, value_key, func_args, func_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 322, in _handle_cache_miss computed_value = self._info.func(*func_args, *func_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\github_workspace\vanna-streamlit-main\vanna_calls.py", line 13, in generate_questions_cached vn = setup_vanna() ^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 210, in wrapper return cached_func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 239, in call return self._get_or_create_cached_value(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 266, in _get_or_create_cached_value return self._handle_cache_miss(cache, value_key, func_args, func_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\programs\anaconda3\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 322, in _handle_cache_miss computed_value = self._info.func(*func_args, **func_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

zsx520556 commented 2 weeks ago

新建文件:.streamlit\secrets.toml 内容如下,注册时的邮箱和model名称: [vanna] key = "your_email@mail.com" model_name = "your_model_name"