Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
#
|
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)
|