Fahimeh Orvati Nia
commited on
Commit
·
484130e
1
Parent(s):
1bf989c
add logo
Browse files
app.py
CHANGED
|
@@ -20,6 +20,9 @@ PRESET_IMAGES = {
|
|
| 20 |
"Cotton": str(BASE_DIR / "Cotton.tif"),
|
| 21 |
}
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
def process(file_path, preset_choice):
|
| 25 |
"""Process image and yield results progressively for immediate display."""
|
|
@@ -103,6 +106,8 @@ def process(file_path, preset_choice):
|
|
| 103 |
|
| 104 |
|
| 105 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
| 106 |
gr.Markdown("# 🌿 Automated Plant Analysis Demo")
|
| 107 |
gr.Markdown("Upload a plant image (TIFF preferred) to compute and visualize composite, mask, overlay, texture, vegetation indices, and statistics.")
|
| 108 |
|
|
|
|
| 20 |
"Cotton": str(BASE_DIR / "Cotton.tif"),
|
| 21 |
}
|
| 22 |
|
| 23 |
+
# Path to header logo
|
| 24 |
+
LOGO_PATH = str(BASE_DIR / "logo.png")
|
| 25 |
+
|
| 26 |
|
| 27 |
def process(file_path, preset_choice):
|
| 28 |
"""Process image and yield results progressively for immediate display."""
|
|
|
|
| 106 |
|
| 107 |
|
| 108 |
with gr.Blocks() as demo:
|
| 109 |
+
# Header logo
|
| 110 |
+
gr.Image(value=LOGO_PATH, show_label=False, interactive=False, height=80)
|
| 111 |
gr.Markdown("# 🌿 Automated Plant Analysis Demo")
|
| 112 |
gr.Markdown("Upload a plant image (TIFF preferred) to compute and visualize composite, mask, overlay, texture, vegetation indices, and statistics.")
|
| 113 |
|
logo.png
ADDED
|
Git LFS Details
|