vigneshwar234 commited on
Commit
95d1beb
Β·
verified Β·
1 Parent(s): 41b16f8

Fix Python 3.13: upgrade to Gradio 5, use gr.Tab instead of gr.TabItem

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -759,7 +759,7 @@ with gr.Blocks(title="VORTEXRAG β€” 7-Layer Causal RAG") as demo:
759
 
760
  with gr.Tabs():
761
  # ── Tab 1: Pipeline Demo ───────────────────────────────────────────────
762
- with gr.TabItem("Pipeline Demo"):
763
  with gr.Row():
764
  with gr.Column(scale=1):
765
  example_dd = gr.Dropdown(
@@ -800,11 +800,11 @@ with gr.Blocks(title="VORTEXRAG β€” 7-Layer Causal RAG") as demo:
800
  )
801
 
802
  # ── Tab 2: Architecture ────────────────────────────────────────────────
803
- with gr.TabItem("Architecture"):
804
  gr.Markdown(HOW_IT_WORKS)
805
 
806
  # ── Tab 3: Benchmarks ─────────────────────────────────────────────────
807
- with gr.TabItem("Benchmarks"):
808
  gr.Markdown("### Main Results β€” NQ + HotpotQA + MuSiQue + 2WikiMultiHopQA")
809
  gr.DataFrame(value=make_benchmark_df(), label="System Comparison", interactive=False)
810
 
@@ -815,7 +815,7 @@ with gr.Blocks(title="VORTEXRAG β€” 7-Layer Causal RAG") as demo:
815
  gr.DataFrame(value=make_latency_df(), label="Latency", interactive=False)
816
 
817
  # ── Tab 4: Domain Presets ─────────────────────────────────────────────
818
- with gr.TabItem("Domain Presets"):
819
  gr.Markdown("### 11 Domain Preset Parameter Vectors")
820
  gr.Markdown(
821
  "Each domain preset is a 7-tuple (Ξ±, Ξ², Ξ³, Ο„, ΞΈ_CPG, Ξ΄_SDC, Ξ΄_FV) calibrated "
@@ -825,11 +825,11 @@ with gr.Blocks(title="VORTEXRAG β€” 7-Layer Causal RAG") as demo:
825
  gr.DataFrame(value=make_domain_df(), label="Domain Parameters", interactive=False)
826
 
827
  # ── Tab 5: Case Studies ───────────────────────────────────────────────
828
- with gr.TabItem("Case Studies"):
829
  gr.Markdown(CASE_STUDIES)
830
 
831
  # ── Tab 6: Citation ───────────────────────────────────────────────────
832
- with gr.TabItem("Citation"):
833
  gr.Markdown(CITATION_TEXT)
834
 
835
 
 
759
 
760
  with gr.Tabs():
761
  # ── Tab 1: Pipeline Demo ───────────────────────────────────────────────
762
+ with gr.Tab("Pipeline Demo"):
763
  with gr.Row():
764
  with gr.Column(scale=1):
765
  example_dd = gr.Dropdown(
 
800
  )
801
 
802
  # ── Tab 2: Architecture ────────────────────────────────────────────────
803
+ with gr.Tab("Architecture"):
804
  gr.Markdown(HOW_IT_WORKS)
805
 
806
  # ── Tab 3: Benchmarks ─────────────────────────────────────────────────
807
+ with gr.Tab("Benchmarks"):
808
  gr.Markdown("### Main Results β€” NQ + HotpotQA + MuSiQue + 2WikiMultiHopQA")
809
  gr.DataFrame(value=make_benchmark_df(), label="System Comparison", interactive=False)
810
 
 
815
  gr.DataFrame(value=make_latency_df(), label="Latency", interactive=False)
816
 
817
  # ── Tab 4: Domain Presets ─────────────────────────────────────────────
818
+ with gr.Tab("Domain Presets"):
819
  gr.Markdown("### 11 Domain Preset Parameter Vectors")
820
  gr.Markdown(
821
  "Each domain preset is a 7-tuple (Ξ±, Ξ², Ξ³, Ο„, ΞΈ_CPG, Ξ΄_SDC, Ξ΄_FV) calibrated "
 
825
  gr.DataFrame(value=make_domain_df(), label="Domain Parameters", interactive=False)
826
 
827
  # ── Tab 5: Case Studies ───────────────────────────────────────────────
828
+ with gr.Tab("Case Studies"):
829
  gr.Markdown(CASE_STUDIES)
830
 
831
  # ── Tab 6: Citation ───────────────────────────────────────────────────
832
+ with gr.Tab("Citation"):
833
  gr.Markdown(CITATION_TEXT)
834
 
835