zac commited on
Commit
8d78062
·
1 Parent(s): 98fca43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def generate_text(input_text, history):
19
  response = output['choices'][0]['text']
20
  history.append([input_text, response])
21
 
22
- return "", response
23
 
24
  with gr.Blocks() as demo:
25
  chatbot = gr.Chatbot()
@@ -27,6 +27,7 @@ with gr.Blocks() as demo:
27
  clear = gr.ClearButton([msg, chatbot])
28
 
29
  msg.submit(generate_text, [msg, chatbot], [msg, chatbot])
 
30
 
31
  demo.queue(concurrency_count=1, max_size=5)
32
  demo.launch()
 
19
  response = output['choices'][0]['text']
20
  history.append([input_text, response])
21
 
22
+ return "", history
23
 
24
  with gr.Blocks() as demo:
25
  chatbot = gr.Chatbot()
 
27
  clear = gr.ClearButton([msg, chatbot])
28
 
29
  msg.submit(generate_text, [msg, chatbot], [msg, chatbot])
30
+
31
 
32
  demo.queue(concurrency_count=1, max_size=5)
33
  demo.launch()