fahimehorvatinia commited on
Commit
5501139
·
verified ·
1 Parent(s): dfc25ab

update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
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.Image(
111
- value=LOGO_PATH,
112
- show_label=False,
113
- interactive=False,
114
- height=None,
115
- width=1200,
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