jays009 commited on
Commit
4dd171e
·
verified ·
1 Parent(s): 4af9c6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -77,5 +77,6 @@ iface = gr.Interface(
77
  description="Upload an image to detect anomalies in maize crops.",
78
  )
79
 
80
- # Launch the interface
81
- iface.launch(share=True, show_error=True)
 
 
77
  description="Upload an image to detect anomalies in maize crops.",
78
  )
79
 
80
+ # Launch the interface locally
81
+ if __name__ == "__main__":
82
+ iface.launch()