Spaces:
Runtime error
Runtime error
queue false and gradio version change
Browse files- app.py +1 -2
- requirements.txt +2 -1
app.py
CHANGED
@@ -138,8 +138,7 @@ with gr.Blocks() as demo:
|
|
138 |
with gr.Row():
|
139 |
txt = gr.Textbox(show_label=False, placeholder="μ¬κΈ°μ μ§λ¬Έμ μ°κ³ μν°").style(container=False)
|
140 |
clear = gr.Button("μλ΄ μλ‘ μμ")
|
141 |
-
txt.submit(predict, inputs=[txt, chatbot, state], outputs=[chatbot, state]
|
142 |
-
)
|
143 |
txt.submit(lambda x: "", txt, txt)
|
144 |
clear.click(lambda: None, None, chatbot, queue=False)
|
145 |
clear.click(lambda x: "", txt, txt)
|
|
|
138 |
with gr.Row():
|
139 |
txt = gr.Textbox(show_label=False, placeholder="μ¬κΈ°μ μ§λ¬Έμ μ°κ³ μν°").style(container=False)
|
140 |
clear = gr.Button("μλ΄ μλ‘ μμ")
|
141 |
+
txt.submit(predict, inputs=[txt, chatbot, state], outputs=[chatbot, state], queue=False )
|
|
|
142 |
txt.submit(lambda x: "", txt, txt)
|
143 |
clear.click(lambda: None, None, chatbot, queue=False)
|
144 |
clear.click(lambda x: "", txt, txt)
|
requirements.txt
CHANGED
@@ -8,4 +8,5 @@ sentencepiece
|
|
8 |
tokenizers==0.12.1
|
9 |
wandb
|
10 |
accelerate
|
11 |
-
googletrans==4.0.0-rc1
|
|
|
|
8 |
tokenizers==0.12.1
|
9 |
wandb
|
10 |
accelerate
|
11 |
+
googletrans==4.0.0-rc1
|
12 |
+
gradio==3.24.1
|