Update app.py
Browse files
app.py
CHANGED
|
@@ -177,7 +177,7 @@ if prompt := st.chat_input():
|
|
| 177 |
|
| 178 |
full_response = ""
|
| 179 |
# 4) Stream chunks from the API
|
| 180 |
-
for chunk in stream_response(chat_history,
|
| 181 |
full_response += chunk
|
| 182 |
# Continuously update the placeholder with the partial response
|
| 183 |
assistant_message_placeholder.write(full_response)
|
|
|
|
| 177 |
|
| 178 |
full_response = ""
|
| 179 |
# 4) Stream chunks from the API
|
| 180 |
+
for chunk in stream_response(chat_history, HF_API_KEY):
|
| 181 |
full_response += chunk
|
| 182 |
# Continuously update the placeholder with the partial response
|
| 183 |
assistant_message_placeholder.write(full_response)
|