henryu commited on
Commit
d9997a1
·
1 Parent(s): ca14a3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def predict(input, max_length, top_p, temperature, history=None):
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-6B:" + response))
21
  if len(updates) < MAX_BOXES:
22
  updates = updates + [gr.Textbox.update(visible=False)] * (MAX_BOXES - len(updates))
23
  yield [history] + updates
 
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-007:" + response))
21
  if len(updates) < MAX_BOXES:
22
  updates = updates + [gr.Textbox.update(visible=False)] * (MAX_BOXES - len(updates))
23
  yield [history] + updates