Spaces:
Paused
Paused
Update app.py
Browse files
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">您说:{
|
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
|