deepak191z commited on
Commit
5ef7985
·
verified ·
1 Parent(s): 16afe44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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