Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Uncaught Exception #262

Open
ZillionsAI opened this issue Dec 1, 2024 · 2 comments
Open

[BUG] Uncaught Exception #262

ZillionsAI opened this issue Dec 1, 2024 · 2 comments

Comments

@ZillionsAI
Copy link

Received the following ERROR
Examining the path of torch.classes raised: Tried to instantiate class 'path.path', but it does not exist! Ensure that it is registered via torch::class

Specificially

Traceback (most recent call last): File "/opt/anaconda3/envs/storm/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() File "/opt/anaconda3/envs/storm/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec exec(code, module.__dict__) File "/Users/ZillionsInternational/Desktop/storm/frontend/demo_light/storm.py", line 62, in <module> main() File "/Users/ZillionsInternational/Desktop/storm/frontend/demo_light/storm.py", line 58, in main CreateNewArticle.create_new_article_page() File "/Users/ZillionsInternational/Desktop/storm/frontend/demo_light/pages_util/CreateNewArticle.py", line 113, in create_new_article_page handle_initiated() File "/Users/ZillionsInternational/Desktop/storm/frontend/demo_light/pages_util/CreateNewArticle.py", line 46, in handle_initiated demo_util.set_storm_runner() File "/Users/ZillionsInternational/Desktop/storm/frontend/demo_light/demo_util.py", line 507, in set_storm_runner llm_configs.init_openai_model(openai_api_key=st.secrets['OPENAI_API_KEY'], openai_type='openai') TypeError: STORMWikiLMConfigs.init_openai_model() missing 1 required positional argument: 'azure_api_key'

@jaydeep-mbarc
Copy link

I fix this by setting up azure_api_key as optional parameter here

@BBC-Esq
Copy link

BBC-Esq commented Jan 5, 2025

I think that you can set the api key within the secrets.toml file that you should be creating. Let me know if this solves the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants