Pointf5ive commited on
Commit
ceb8ef4
·
1 Parent(s): 83de251

Make workbook and manuscript upload windows always visible on Dashboard

Browse files
Files changed (1) hide show
  1. app.py +25 -24
app.py CHANGED
@@ -3005,8 +3005,10 @@ with gr.Blocks(title="TOTEM Studio") as demo:
3005
  run_button = gr.Button("Run TOTEM Analysis (Bridge v1)", variant="secondary", scale=1)
3006
 
3007
  gr.HTML("<div class='js-workbook-intake-anchor' aria-hidden='true'></div>")
3008
- with gr.Accordion("Workbook Intake (required for scoring)", open=True, elem_id="workbook-intake-panel"):
3009
- with gr.Column(elem_classes=["wrap"]):
 
 
3010
  dashboard_workbook_file = gr.File(
3011
  label="Workbook (.xlsx or .xlsm)",
3012
  file_types=[".xlsx", ".xlsm"],
@@ -3019,11 +3021,8 @@ with gr.Blocks(title="TOTEM Studio") as demo:
3019
  interactive=False,
3020
  )
3021
 
3022
- with gr.Accordion("Manuscript Intake (score pipeline)", open=True, elem_id="codex-panel"):
3023
- with gr.Column(elem_classes=["codex-body"]):
3024
- gr.Markdown(
3025
- "Upload manuscript here to build analysis context. Scoring updates only when you click Run TOTEM Analysis."
3026
- )
3027
  dashboard_manuscript_file = gr.File(
3028
  label="Manuscript (.txt, .docx, or .pdf)",
3029
  file_types=[".txt", ".docx", ".pdf"],
@@ -3039,23 +3038,25 @@ with gr.Blocks(title="TOTEM Studio") as demo:
3039
  lines=2,
3040
  value="Ready.",
3041
  )
3042
- dashboard_manuscript_json = gr.Textbox(
3043
- label="Extracted fingerprint (JSON)",
3044
- interactive=False,
3045
- lines=8,
3046
- )
3047
- dashboard_manuscript_report = gr.Textbox(
3048
- label="Extraction report",
3049
- interactive=False,
3050
- lines=10,
3051
- )
3052
- bridge_diag_log = gr.Textbox(
3053
- label="Bridge diagnostics (for bug reports)",
3054
- interactive=False,
3055
- lines=8,
3056
- value='{"status":"idle","message":"No analysis run yet."}',
3057
- )
3058
- copy_bridge_log_btn = gr.Button("Copy Bridge Log", variant="secondary")
 
 
3059
 
3060
  with gr.Row(elem_id="path-panel"):
3061
  with gr.Column(elem_classes=["wrap"]):
 
3005
  run_button = gr.Button("Run TOTEM Analysis (Bridge v1)", variant="secondary", scale=1)
3006
 
3007
  gr.HTML("<div class='js-workbook-intake-anchor' aria-hidden='true'></div>")
3008
+ gr.Markdown("### Intake Windows")
3009
+ with gr.Row(elem_id="intake-row"):
3010
+ with gr.Column(scale=1, elem_id="workbook-intake-panel"):
3011
+ gr.Markdown("**Workbook Upload**")
3012
  dashboard_workbook_file = gr.File(
3013
  label="Workbook (.xlsx or .xlsm)",
3014
  file_types=[".xlsx", ".xlsm"],
 
3021
  interactive=False,
3022
  )
3023
 
3024
+ with gr.Column(scale=1, elem_id="codex-panel"):
3025
+ gr.Markdown("**Manuscript Upload**")
 
 
 
3026
  dashboard_manuscript_file = gr.File(
3027
  label="Manuscript (.txt, .docx, or .pdf)",
3028
  file_types=[".txt", ".docx", ".pdf"],
 
3038
  lines=2,
3039
  value="Ready.",
3040
  )
3041
+
3042
+ with gr.Accordion("Bridge Diagnostics", open=False):
3043
+ dashboard_manuscript_json = gr.Textbox(
3044
+ label="Extracted fingerprint (JSON)",
3045
+ interactive=False,
3046
+ lines=8,
3047
+ )
3048
+ dashboard_manuscript_report = gr.Textbox(
3049
+ label="Extraction report",
3050
+ interactive=False,
3051
+ lines=10,
3052
+ )
3053
+ bridge_diag_log = gr.Textbox(
3054
+ label="Bridge diagnostics (for bug reports)",
3055
+ interactive=False,
3056
+ lines=8,
3057
+ value='{"status":"idle","message":"No analysis run yet."}',
3058
+ )
3059
+ copy_bridge_log_btn = gr.Button("Copy Bridge Log", variant="secondary")
3060
 
3061
  with gr.Row(elem_id="path-panel"):
3062
  with gr.Column(elem_classes=["wrap"]):