clarkchan commited on
Commit
dc1c699
·
1 Parent(s): 89086b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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"}