Spaces:
Runtime error
Runtime error
Commit
·
6e1bf63
1
Parent(s):
3a6e7b7
Fix bot webhook link (#1)
Browse files- Fix bot webhook link (02640bf2f9e051397dbbd7bfbd4d2ea60f1b21e8)
Co-authored-by: Abdulazeez Jimoh <abdulazeezoj@users.noreply.huggingface.co>
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('
|
| 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('https://pvanand-rasa-moodbot.hf.space/webhooks/rest/webhook', json=payload)
|
| 20 |
bot_reply = response.json()
|
| 21 |
|
| 22 |
# Append the user message and bot reply to the chat history
|