Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,8 +108,8 @@ elif st.session_state.page == "python":
|
|
| 108 |
elif st.session_state.page == "sql":
|
| 109 |
st.title("SQL Chatbot 🛢️")
|
| 110 |
if not hf_token:
|
| 111 |
-
|
| 112 |
-
|
| 113 |
|
| 114 |
# Initialize the LLaMA model from HuggingFace (via Nebius provider)
|
| 115 |
llama_model = HuggingFaceEndpoint(
|
|
|
|
| 108 |
elif st.session_state.page == "sql":
|
| 109 |
st.title("SQL Chatbot 🛢️")
|
| 110 |
if not hf_token:
|
| 111 |
+
st.error("Please add your Hugging Face API token as an environment variable.")
|
| 112 |
+
st.stop()
|
| 113 |
|
| 114 |
# Initialize the LLaMA model from HuggingFace (via Nebius provider)
|
| 115 |
llama_model = HuggingFaceEndpoint(
|