Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ with st.form(key='chat_form'):
|
|
| 16 |
|
| 17 |
if submitted and user_input:
|
| 18 |
payload = {"sender": "user", "message": user_input}
|
| 19 |
-
response = requests.post('http://localhost:
|
| 20 |
bot_reply = response.json()
|
| 21 |
|
| 22 |
# Append the user message and bot reply to the chat history
|
|
|
|
| 16 |
|
| 17 |
if submitted and user_input:
|
| 18 |
payload = {"sender": "user", "message": user_input}
|
| 19 |
+
response = requests.post('http://localhost:7860/webhooks/rest/webhook', json=payload)
|
| 20 |
bot_reply = response.json()
|
| 21 |
|
| 22 |
# Append the user message and bot reply to the chat history
|