Hi Everyone, New to Streamlit. Can you please help me solve the following problem with the NameError?
thanks,
Ron
If you’re creating a debugging post, please include the following info:
- Share the link to the public app (deployed on Community Cloud).
- Share the link to your app’s public GitHub repository (including a requirements file).
- Share the full text of the error message (not a screenshot).
- NameError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
Traceback:
File "/mount/src/rg_tech_llm_rag/streamlit_app.py", line 20, in <module>
svc = root.databases[CORTEX_SEARCH_DATABASE].schemas[CORTEX_SEARCH_SCHEMA].cortex_search_services[CORTEX_SEARCH_SERVICE]
CORTEX_SEARCH_DATABASE = “RG_SEARCH_DOCS”
CORTEX_SEARCH_SCHEMA = “DATA”
CORTEX_SEARCH_SERVICE = “RG_SEARCH_SERVICE_CS”
svc = root.databases[CORTEX_SEARCH_DATABASE].schemas[CORTEX_SEARCH_SCHEMA].cortex_search_services[CORTEX_SEARCH_SERVICE]
#session = get_active_session()
#root = Root(session)
#added this for
cnx = st.connection(“snowflake”)
session = cnx.session()