Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
dba1dfa
1
Parent(s):
d50b889
app.py
CHANGED
|
@@ -94,9 +94,9 @@ with gr.Blocks(theme=theme) as block:
|
|
| 94 |
clear = gr.ClearButton([msg, chatbot])
|
| 95 |
|
| 96 |
# do not clear prompt
|
| 97 |
-
|
| 98 |
|
| 99 |
-
|
| 100 |
|
| 101 |
with gr.Accordion("Example inputs", open=True):
|
| 102 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
|
|
|
| 94 |
clear = gr.ClearButton([msg, chatbot])
|
| 95 |
|
| 96 |
# do not clear prompt
|
| 97 |
+
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 98 |
|
| 99 |
+
btn.click(lambda x, y: ("",) + respond(x, y)[1:], [msg, chatbot], [msg, chatbot])
|
| 100 |
|
| 101 |
with gr.Accordion("Example inputs", open=True):
|
| 102 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|