罗峰 commited on
Commit
6aaffa2
·
1 Parent(s): 580bff2

app commit

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -71,7 +71,7 @@ def reset_user_input():
71
  def reset_state():
72
  return [], []
73
 
74
- def predict(file,input,history):
75
  input1=f""+input+"\n"+file
76
  out=agent(input1)
77
  anws = toChinese(out['output'])
@@ -104,4 +104,4 @@ with gr.Blocks() as demo:
104
  output = gr.Textbox(label='答案', placeholder="", lines=2,interactive=False)
105
  submit = gr.Button('提问',variant="primary")
106
  submit.click(predict,inputs=[image_url,input],outputs=output)
107
- demo.queue(api_open=False,concurrency_count=20).launch()
 
71
  def reset_state():
72
  return [], []
73
 
74
+ def predict(file,input):
75
  input1=f""+input+"\n"+file
76
  out=agent(input1)
77
  anws = toChinese(out['output'])
 
104
  output = gr.Textbox(label='答案', placeholder="", lines=2,interactive=False)
105
  submit = gr.Button('提问',variant="primary")
106
  submit.click(predict,inputs=[image_url,input],outputs=output)
107
+ demo.launch()