Spaces:
Running
on
Zero
Running
on
Zero
Set api_name
Browse files
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,
|
|
|
|
|
|
|
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()
|