Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
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))
|