Spaces:
Runtime error
Runtime error
Commit
·
c6fe2db
1
Parent(s):
144b09d
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,8 @@ import requests
|
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
def call_chatbot_api(query):
|
| 5 |
-
url = 'https://hf-aichat-api.onrender.com/api/chat'
|
|
|
|
| 6 |
data = {'query': query}
|
| 7 |
response = requests.post(url, json=data)
|
| 8 |
result = response.json()
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
def call_chatbot_api(query):
|
| 5 |
+
# url = 'https://hf-aichat-api.onrender.com/api/chat' #OKed
|
| 6 |
+
url = 'https://hf-aichatboapi.onrender.com/api/chat'
|
| 7 |
data = {'query': query}
|
| 8 |
response = requests.post(url, json=data)
|
| 9 |
result = response.json()
|