binqiangliu commited on
Commit
cd38fcd
·
1 Parent(s): efeaf16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,9 +2,9 @@ import requests
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' #Failed
7
- url = 'https://newaichatapi.onrender.com/api/chat'
8
  data = {'query': query}
9
  response = requests.post(url, json=data)
10
  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' #Failed
7
+ # url = 'https://newaichatapi.onrender.com/api/chat' #Failed: JSONDecodeError: Expecting value: line 1 column 1 (char 0)
8
  data = {'query': query}
9
  response = requests.post(url, json=data)
10
  result = response.json()