DigiP-AI commited on
Commit
c4a0d4b
·
verified ·
1 Parent(s): 1520c37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -202,5 +202,5 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
202
  radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
203
  iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
204
 
205
-
206
- app.launch(show_api=False, share=False)
 
202
  radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
203
  iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
204
 
205
+ if __name__ == "__main__":
206
+ app.launch(show_api=False, share=False)