Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,7 @@ import requests
|
|
4 |
|
5 |
def chatbot_response(user_input: str, history) -> str:
|
6 |
r = requests.post(
|
7 |
-
"http://localhost:3000"
|
8 |
-
json={"example": "json"}
|
9 |
-
)
|
10 |
response = r.json()
|
11 |
return f"Response from the API was {response}"
|
12 |
|
|
|
4 |
|
5 |
def chatbot_response(user_input: str, history) -> str:
|
6 |
r = requests.post(
|
7 |
+
f"http://localhost:3000/chat/?query={user_input}")
|
|
|
|
|
8 |
response = r.json()
|
9 |
return f"Response from the API was {response}"
|
10 |
|