SW777SW commited on
Commit
c3e5515
·
verified ·
1 Parent(s): 345d65c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -38,4 +38,6 @@ with gr.Blocks() as demo:
38
  outputs = [gr.Textbox(label="Log"), gr.Image(type="filepath", label="Processed Images", interactive=False)]
39
  btn.click(fn=process_images, inputs=inputs, outputs=outputs)
40
 
41
- demo.launch()
 
 
 
38
  outputs = [gr.Textbox(label="Log"), gr.Image(type="filepath", label="Processed Images", interactive=False)]
39
  btn.click(fn=process_images, inputs=inputs, outputs=outputs)
40
 
41
+
42
+ if __name__ == "__main__":
43
+ demo.launch(server_name="0.0.0.0", server_port=7860)