Update app.py
Browse files
app.py
CHANGED
|
@@ -168,7 +168,7 @@ if prompt := st.chat_input():
|
|
| 168 |
|
| 169 |
full_response = ""
|
| 170 |
# 4) Stream chunks from the API
|
| 171 |
-
for chunk in stream_response(chat_history,
|
| 172 |
full_response += chunk
|
| 173 |
# Continuously update the placeholder with the partial response
|
| 174 |
assistant_message_placeholder.write(full_response)
|
|
|
|
| 168 |
|
| 169 |
full_response = ""
|
| 170 |
# 4) Stream chunks from the API
|
| 171 |
+
for chunk in stream_response(chat_history, HF_API_KEY):
|
| 172 |
full_response += chunk
|
| 173 |
# Continuously update the placeholder with the partial response
|
| 174 |
assistant_message_placeholder.write(full_response)
|