luisoala commited on
Commit
60c8c6c
·
1 Parent(s): eb076e4

field order

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -39,16 +39,10 @@ def create_ui():
39
  3. If records can be generated within a reasonable time
40
  """)
41
 
42
- # Create containers for validation results - moved up for cleaner flow
43
- validation_results = gr.HTML(visible=False)
44
- upload_progress = gr.HTML(
45
- """<div class="progress-container">
46
- <div class="progress-status">Ready for validation</div>
47
- </div>""", visible=True)
48
-
49
  # Track the active tab for conditional UI updates
50
  active_tab = gr.State("upload") # Default to upload tab
51
 
 
52
  with gr.Tabs() as tabs:
53
  with gr.TabItem("Upload File", id="upload_tab"):
54
  file_input = gr.File(label="Upload Croissant JSON-LD File", file_types=[".json", ".jsonld"])
@@ -61,6 +55,13 @@ def create_ui():
61
  )
62
  fetch_btn = gr.Button("Fetch and Validate", variant="primary")
63
 
 
 
 
 
 
 
 
64
  # Define CSS for the validation UI - improved for dark mode compatibility
65
  gr.HTML("""
66
  <style>
 
39
  3. If records can be generated within a reasonable time
40
  """)
41
 
 
 
 
 
 
 
 
42
  # Track the active tab for conditional UI updates
43
  active_tab = gr.State("upload") # Default to upload tab
44
 
45
+ # Move the tabs before the validation results
46
  with gr.Tabs() as tabs:
47
  with gr.TabItem("Upload File", id="upload_tab"):
48
  file_input = gr.File(label="Upload Croissant JSON-LD File", file_types=[".json", ".jsonld"])
 
55
  )
56
  fetch_btn = gr.Button("Fetch and Validate", variant="primary")
57
 
58
+ # Create containers for validation results - moved below inputs for better flow
59
+ upload_progress = gr.HTML(
60
+ """<div class="progress-container">
61
+ <div class="progress-status">Ready for validation</div>
62
+ </div>""", visible=True)
63
+ validation_results = gr.HTML(visible=False)
64
+
65
  # Define CSS for the validation UI - improved for dark mode compatibility
66
  gr.HTML("""
67
  <style>