ASG Models commited on
Commit
86156a7
·
verified ·
1 Parent(s): 4835adc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -84,6 +84,7 @@ def dash(text):
84
  for chunk in response:
85
  yield chunk.text
86
  # return textai
 
87
 
88
- demo = gr.Interface(fn=dash, inputs="text", outputs="text")
89
  demo.launch()
 
84
  for chunk in response:
85
  yield chunk.text
86
  # return textai
87
+ outtextbox = gr.Textbox( streaming_text=True)
88
 
89
+ demo = gr.Interface(fn=dash, inputs="text", outputs=[outtextbox])
90
  demo.launch()