Spaces:
Sleeping
Sleeping
Fernando Knüttel commited on
Commit ·
4a5a454
1
Parent(s): a60c4dc
history can be send at the backend
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -196,7 +196,7 @@ else:
|
|
| 196 |
try:
|
| 197 |
# Request to backend
|
| 198 |
placeholder.markdown("Typing...")
|
| 199 |
-
response = requests.post(API_URL, json={"message": user_input}, timeout=120)
|
| 200 |
response.raise_for_status()
|
| 201 |
|
| 202 |
# Get reply and show it
|
|
|
|
| 196 |
try:
|
| 197 |
# Request to backend
|
| 198 |
placeholder.markdown("Typing...")
|
| 199 |
+
response = requests.post(API_URL, json={"message": user_input, "history": st.session_state.history}, timeout=120)
|
| 200 |
response.raise_for_status()
|
| 201 |
|
| 202 |
# Get reply and show it
|