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