ranchopanda0 commited on
Commit
2993675
·
verified ·
1 Parent(s): d7b2e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -77,9 +77,8 @@ iface = gr.Interface(
77
  """,
78
  theme="compact",
79
  allow_flagging="never",
80
- examples=["example_leaf.jpg"], # Add a sample leaf image
81
  )
82
 
83
- # Launch Gradio App
84
  if __name__ == "__main__":
85
- iface.launch()
 
77
  """,
78
  theme="compact",
79
  allow_flagging="never",
 
80
  )
81
 
82
+ # **Ensure this part runs correctly in Hugging Face Spaces**
83
  if __name__ == "__main__":
84
+ iface.launch(server_name="0.0.0.0", server_port=7860)