henryu commited on
Commit
9121a63
1 Parent(s): 17cc499

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def predict(input, max_length, top_p, temperature, history=None):
16
  temperature=temperature):
17
  updates = []
18
  for query, response in history:
19
- updates.append(gr.update(visible=True, value="小高:" + query))
20
  updates.append(gr.update(visible=True, value="ChatGLM-henryu:" + response))
21
  if len(updates) < MAX_BOXES:
22
  updates = updates + [gr.Textbox.update(visible=False)] * (MAX_BOXES - len(updates))
 
16
  temperature=temperature):
17
  updates = []
18
  for query, response in history:
19
+ updates.append(gr.update(visible=True, value="用户:" + query))
20
  updates.append(gr.update(visible=True, value="ChatGLM-henryu:" + response))
21
  if len(updates) < MAX_BOXES:
22
  updates = updates + [gr.Textbox.update(visible=False)] * (MAX_BOXES - len(updates))