felfri commited on
Commit
4b89e90
·
verified ·
1 Parent(s): 6c5b092

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -19
app.py CHANGED
@@ -353,29 +353,39 @@ class AIEvaluationForm:
353
  label="Scorecard JSON",
354
  show_label=True
355
  )
356
-
357
- with gr.Row():
358
- # Large prominent download button
359
- download_btn = gr.Button(
360
- "📥 Download Scorecard JSON",
361
- variant="primary",
362
- size="lg",
363
- visible=False,
364
- scale=2
365
- )
366
 
367
- # Alternative: HTML download link (more direct)
368
- download_html = gr.HTML(
369
- "",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  visible=False
371
  )
372
 
373
- # Hidden file component for actual file handling
374
- download_file = gr.File(
375
- label="Download File",
376
- visible=False
377
- )
378
-
379
  # Event handlers
380
  all_inputs = system_inputs + eval_inputs
381
 
 
353
  label="Scorecard JSON",
354
  show_label=True
355
  )
356
+ # Enhanced download section with better visibility
357
+ with gr.Group():
358
+ gr.Markdown("### 💾 Download Your Scorecard")
 
 
 
 
 
 
 
359
 
360
+ with gr.Row():
361
+ # Status text to show download readiness
362
+ download_status = gr.Markdown(
363
+ "ℹ️ *Generate a scorecard to enable download*",
364
+ visible=True
365
+ )
366
+
367
+ with gr.Row():
368
+ # Large prominent download button
369
+ download_btn = gr.Button(
370
+ "📥 Download Scorecard JSON",
371
+ variant="primary",
372
+ size="lg",
373
+ visible=False,
374
+ scale=2
375
+ )
376
+
377
+ # Alternative: HTML download link (more direct)
378
+ download_html = gr.HTML(
379
+ "",
380
+ visible=False
381
+ )
382
+
383
+ # Hidden file component for actual file handling
384
+ download_file = gr.File(
385
+ label="Download File",
386
  visible=False
387
  )
388
 
 
 
 
 
 
 
389
  # Event handlers
390
  all_inputs = system_inputs + eval_inputs
391