Fabrice-TIERCELIN commited on
Commit
911fb02
1 Parent(s): a282bf5

No server no port

Browse files
Files changed (1) hide show
  1. gradio_demo.py +4 -4
gradio_demo.py CHANGED
@@ -227,9 +227,8 @@ By using this service, users are required to agree to the following terms: The s
227
  The service is a research preview intended for non-commercial use only, subject to the model [License](https://github.com/Fanghua-Yu/SUPIR) of SUPIR.
228
  """
229
 
230
-
231
- block = gr.Blocks(title='SUPIR').queue()
232
- with block:
233
  with gr.Row():
234
  gr.Markdown(title_md)
235
  with gr.Row():
@@ -333,4 +332,5 @@ with block:
333
  outputs=[edm_steps, s_cfg, s_stage2, s_stage1, s_churn, s_noise, a_prompt, n_prompt,
334
  color_fix_type, linear_CFG, linear_s_stage2, spt_linear_CFG, spt_linear_s_stage2])
335
  submit_button.click(fn=submit_feedback, inputs=[event_id, fb_score, fb_text], outputs=[fb_text])
336
- block.launch(server_name=server_ip, server_port=server_port)
 
 
227
  The service is a research preview intended for non-commercial use only, subject to the model [License](https://github.com/Fanghua-Yu/SUPIR) of SUPIR.
228
  """
229
 
230
+ # Gradio interface
231
+ with gr.Blocks(title='SUPIR') as interface:
 
232
  with gr.Row():
233
  gr.Markdown(title_md)
234
  with gr.Row():
 
332
  outputs=[edm_steps, s_cfg, s_stage2, s_stage1, s_churn, s_noise, a_prompt, n_prompt,
333
  color_fix_type, linear_CFG, linear_s_stage2, spt_linear_CFG, spt_linear_s_stage2])
334
  submit_button.click(fn=submit_feedback, inputs=[event_id, fb_score, fb_text], outputs=[fb_text])
335
+
336
+ interface.queue(10).launch()