Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks() as demo:
|
|
58 |
text = gr.Textbox(scale=9)
|
59 |
btn = gr.Button(scale=1)
|
60 |
btn.click(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text)
|
61 |
-
text.submit(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text)
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
demo.launch()
|
|
|
58 |
text = gr.Textbox(scale=9)
|
59 |
btn = gr.Button(scale=1)
|
60 |
btn.click(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text)
|
61 |
+
text.submit(simulate_thinking_chat, [text, chat], [chat]).then(lambda :gr.Textbox(value=""), [], text)
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
demo.launch()
|