update app.py
Browse files
app.py
CHANGED
|
@@ -107,17 +107,12 @@ def process(file_path, preset_choice):
|
|
| 107 |
|
| 108 |
with gr.Blocks(fill_width=True) as demo:
|
| 109 |
# Header logo (no share/download/fullscreen buttons), full width
|
| 110 |
-
gr.
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
container=False,
|
| 117 |
-
show_download_button=False,
|
| 118 |
-
show_share_button=False,
|
| 119 |
-
show_fullscreen_button=False,
|
| 120 |
-
)
|
| 121 |
gr.Markdown("# 🌿 Automated Plant Analysis Demo")
|
| 122 |
gr.Markdown("Upload a plant image (TIFF preferred) to compute and visualize composite, mask, overlay, texture, vegetation indices, and statistics.")
|
| 123 |
|
|
|
|
| 107 |
|
| 108 |
with gr.Blocks(fill_width=True) as demo:
|
| 109 |
# Header logo (no share/download/fullscreen buttons), full width
|
| 110 |
+
gr.HTML(f"""
|
| 111 |
+
<div style="display: flex; justify-content: center; align-items: center; width: 100%;">
|
| 112 |
+
<img src="file/{LOGO_PATH}" style="width: 100%; max-width: 1200px; object-fit: contain;" alt="Logo">
|
| 113 |
+
</div>
|
| 114 |
+
""")
|
| 115 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
gr.Markdown("# 🌿 Automated Plant Analysis Demo")
|
| 117 |
gr.Markdown("Upload a plant image (TIFF preferred) to compute and visualize composite, mask, overlay, texture, vegetation indices, and statistics.")
|
| 118 |
|