Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -73,6 +73,12 @@ def classify_mushroom(image: Image.Image):
|
|
73 |
print(f"❌ Error: {e}")
|
74 |
return "Error", "ผิดพลาด", "N/A", "Invalid image. Please upload a valid mushroom photo."
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
# 🎛️ Gradio UI
|
77 |
if __name__ == "__main__":
|
78 |
with gr.Blocks() as demo:
|
@@ -96,6 +102,8 @@ if __name__ == "__main__":
|
|
96 |
)
|
97 |
|
98 |
gr.Markdown("---")
|
|
|
|
|
99 |
gr.Markdown("App version: 1.1.0 | Updated: August 2025")
|
100 |
|
101 |
demo.launch()
|
|
|
73 |
print(f"❌ Error: {e}")
|
74 |
return "Error", "ผิดพลาด", "N/A", "Invalid image. Please upload a valid mushroom photo."
|
75 |
|
76 |
+
# 🔗 Open user manual (link version) 🆕
|
77 |
+
MANUAL_URL = "https://drive.google.com/drive/folders/19lUCEaLstrRjCzqpDlWErhRd1EXWUGbf?usp=sharing"
|
78 |
+
manual_link = f"<a href=\"{MANUAL_URL}\" target=\"_blank\">📄 Open User Manual</a>"
|
79 |
+
FEEDBACK_URL = "https://forms.gle/k5zE2xoUudzjqqS29"
|
80 |
+
feedback_link = f"<a href=\"{FEEDBACK_URL}\" target=\"_blank\">📄 If you need feedback</a>"
|
81 |
+
|
82 |
# 🎛️ Gradio UI
|
83 |
if __name__ == "__main__":
|
84 |
with gr.Blocks() as demo:
|
|
|
102 |
)
|
103 |
|
104 |
gr.Markdown("---")
|
105 |
+
gr.Markdown(manual_link) # 🆕 Display clickable user manual
|
106 |
+
gr.Markdown(feedback_link) # 🆕 Display clickable user manual
|
107 |
gr.Markdown("App version: 1.1.0 | Updated: August 2025")
|
108 |
|
109 |
demo.launch()
|