Meteor21 commited on
Commit
2300238
1 Parent(s): b9f774d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -123,5 +123,5 @@ with gr.Blocks() as demo:
123
  submit_button.click(fn=lambda image, query: show_img(image), inputs=[button, textbox], outputs=[photo]) \
124
  .then(fn=lambda image, query: retrieve_images(query, image), inputs=[button, textbox], outputs=[gallery])
125
 
126
- if __name__ == "__main__":
127
- demo.launch(server_name="0.0.0.0", server_port=8000)
 
123
  submit_button.click(fn=lambda image, query: show_img(image), inputs=[button, textbox], outputs=[photo]) \
124
  .then(fn=lambda image, query: retrieve_images(query, image), inputs=[button, textbox], outputs=[gallery])
125
 
126
+ #demo.launch(server_name="0.0.0.0", server_port=8000)
127
+ demo.launch()