mohammed-aljafry commited on
Commit
8eef426
·
verified ·
1 Parent(s): 5836a74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -181,7 +181,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"), cs
181
  return gr.update(value=selected_example["img_path"]), gr.update(value=selected_example["json_path"])
182
 
183
  # --- استخدام gr.Dataset مع إخفاء المكونات ---
184
- with gr.Accordion("📝 تفاصيل السيناريو المحدد", open=False): # المكونات التي تظهر فوق الجدول سيتم طيّها داخل هذا الـ Accordion
185
  example_image = gr.Image(label="الصورة", type="filepath")
186
  example_speed = gr.Textbox(label="السرعة")
187
  example_theta = gr.Textbox(label="الاتجاه")
 
181
  return gr.update(value=selected_example["img_path"]), gr.update(value=selected_example["json_path"])
182
 
183
  # --- استخدام gr.Dataset مع إخفاء المكونات ---
184
+ with gr.Column(visible=False): # المكونات التي تظهر فوق الجدول سيتم طيّها داخل هذا الـ Accordion
185
  example_image = gr.Image(label="الصورة", type="filepath")
186
  example_speed = gr.Textbox(label="السرعة")
187
  example_theta = gr.Textbox(label="الاتجاه")