howard-hou commited on
Commit
a30c82c
1 Parent(s): 3857db2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -111,13 +111,12 @@ def test(image, question):
111
  for output in generate(input_text, image_ids):
112
  yield output
113
 
114
- demo = gr.Interface(fn=test,
115
- inputs=[gr.Image(type='pil'), "text"],
116
- outputs="text",
117
- examples=examples,
118
- title=title,
119
- description="VisualRWKV-v5.0",
120
- live=True)
121
 
122
- demo.queue(concurrency_count=1, max_size=10)
123
  demo.launch(share=False, enable_queue=True)
 
111
  for output in generate(input_text, image_ids):
112
  yield output
113
 
114
+ demo = gr.ChatInterface(fn=test,
115
+ inputs=[gr.Image(type='pil'), "text"],
116
+ outputs="text",
117
+ examples=examples,
118
+ title=title,
119
+ description="VisualRWKV-v5.0")
 
120
 
121
+ demo = demo.queue(concurrency_count=1, max_size=10)
122
  demo.launch(share=False, enable_queue=True)