Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import requests
|
|
4 |
#tokenizer = AutoTokenizer.from_pretrained("liam168/c2-roberta-base-finetuned-dianping-chinese")
|
5 |
conversation_history = ""
|
6 |
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"}
|
|
|
4 |
#tokenizer = AutoTokenizer.from_pretrained("liam168/c2-roberta-base-finetuned-dianping-chinese")
|
5 |
conversation_history = ""
|
6 |
def chat(input):
|
7 |
+
global conversation_history
|
8 |
url = 'http://dark.21cnai.com:5000/api/chat'
|
9 |
data = { "message": input }
|
10 |
headers = {"Content-Type": "Application/json","Authorization":"Bearer kdfjwoieskdflasdnf"}
|