hysts HF staff commited on
Commit
a853b3a
1 Parent(s): 18b4db6

Set api_name

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -188,6 +188,9 @@ with gr.Blocks(css='style.css') as demo:
188
  ]
189
  prompt.submit(fn=model.run, inputs=inputs, outputs=outputs)
190
  token_indices_str.submit(fn=model.run, inputs=inputs, outputs=outputs)
191
- run_button.click(fn=model.run, inputs=inputs, outputs=outputs)
 
 
 
192
 
193
  demo.queue(max_size=10).launch()
 
188
  ]
189
  prompt.submit(fn=model.run, inputs=inputs, outputs=outputs)
190
  token_indices_str.submit(fn=model.run, inputs=inputs, outputs=outputs)
191
+ run_button.click(fn=model.run,
192
+ inputs=inputs,
193
+ outputs=outputs,
194
+ api_name='run')
195
 
196
  demo.queue(max_size=10).launch()