Fahimeh Orvati Nia commited on
Commit
484130e
·
1 Parent(s): 1bf989c
Files changed (2) hide show
  1. app.py +5 -0
  2. logo.png +3 -0
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

  • SHA256: 0f28dd804ee5dc89e1fad65d5a9b09e870c465088cd292991d8439e3a50975ed
  • Pointer size: 130 Bytes
  • Size of remote file: 60.5 kB