ttagu99 commited on
Commit
03d0755
β€’
1 Parent(s): 3f5c67e

queue false and gradio version change

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  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