Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def chat(input):
|
|
| 11 |
user_message = f'<span class="user">您说:{input}</span><br>'
|
| 12 |
response = requests.post(url, json=data, headers=headers)
|
| 13 |
bot_message = f'<span class="chatbot">ChatGPT:{response.text}</span><br>'
|
| 14 |
-
conversation_history
|
| 15 |
return conversation_history
|
| 16 |
|
| 17 |
css = '''
|
|
|
|
| 11 |
user_message = f'<span class="user">您说:{input}</span><br>'
|
| 12 |
response = requests.post(url, json=data, headers=headers)
|
| 13 |
bot_message = f'<span class="chatbot">ChatGPT:{response.text}</span><br>'
|
| 14 |
+
conversation_history = user_message + bot_message
|
| 15 |
return conversation_history
|
| 16 |
|
| 17 |
css = '''
|