Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -144,6 +144,7 @@ def reset_chat(idx, ld, state, palm_if):
|
|
144 |
return (
|
145 |
"",
|
146 |
[],
|
|
|
147 |
str(res),
|
148 |
gr.update(visible=True),
|
149 |
gr.update(interactive=False),
|
@@ -430,7 +431,7 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
|
|
430 |
|
431 |
clean.click(
|
432 |
reset_chat,
|
433 |
-
[idx, local_data, chat_state, palm_if],
|
434 |
[instruction_txtbox, chatbot, local_data, example_block, regenerate]
|
435 |
).then(
|
436 |
None, local_data, None,
|
|
|
144 |
return (
|
145 |
"",
|
146 |
[],
|
147 |
+
None,
|
148 |
str(res),
|
149 |
gr.update(visible=True),
|
150 |
gr.update(interactive=False),
|
|
|
431 |
|
432 |
clean.click(
|
433 |
reset_chat,
|
434 |
+
[idx, local_data, palm_if, chat_state, palm_if],
|
435 |
[instruction_txtbox, chatbot, local_data, example_block, regenerate]
|
436 |
).then(
|
437 |
None, local_data, None,
|