clarkchan commited on
Commit
89086b1
1 Parent(s): 45b560c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def chat(input):
7
  url = 'http://dark.21cnai.com:5000/api/chat'
8
  data = { "message": input }
9
  headers = {"Content-Type": "Application/json","Authorization":"Bearer kdfjwoieskdflasdnf"}
10
- user_message = f'<span class="user">您说:{input_text}</span><br>'
11
  response = requests.post(url, json=data, headers=headers)
12
  bot_message = f'<span class="chatbot">ChatGPT:{response.text}</span><br>'
13
  conversation_history += user_message + bot_message
 
7
  url = 'http://dark.21cnai.com:5000/api/chat'
8
  data = { "message": input }
9
  headers = {"Content-Type": "Application/json","Authorization":"Bearer kdfjwoieskdflasdnf"}
10
+ user_message = f'<span class="user">您说:{input}</span><br>'
11
  response = requests.post(url, json=data, headers=headers)
12
  bot_message = f'<span class="chatbot">ChatGPT:{response.text}</span><br>'
13
  conversation_history += user_message + bot_message