gabrielaltay commited on
Commit
9a7687f
1 Parent(s): 729aada

config out of form box

Browse files
Files changed (1) hide show
  1. app.py +25 -25
app.py CHANGED
@@ -471,16 +471,16 @@ Query: {query}"""
471
  "Enter a query that can be answered with congressional legislation:",
472
  key=f"{key_prefix}|query",
473
  )
474
- col1, col2 = st.columns(2)
475
- with col1:
476
- with st.expander("Generative Config"):
477
- render_generative_config(key_prefix)
478
- with col2:
479
- with st.expander("Retrieval Config"):
480
- render_retrieval_config(key_prefix)
481
-
482
  query_submitted = st.form_submit_button("Submit")
483
 
 
 
 
 
 
 
 
 
484
  if query_submitted:
485
 
486
  llm = get_llm(key_prefix)
@@ -569,23 +569,23 @@ Query: {query}"""
569
  )
570
  query_submitted = st.form_submit_button("Submit")
571
 
572
- grp1a, grp2a = st.columns(2)
573
-
574
- with grp1a:
575
- st.header("Group 1")
576
- key_prefix = f"{base_key_prefix}|grp1"
577
- with st.expander("Generative Config"):
578
- render_generative_config(key_prefix)
579
- with st.expander("Retrieval Config"):
580
- render_retrieval_config(key_prefix)
581
-
582
- with grp2a:
583
- st.header("Group 2")
584
- key_prefix = f"{base_key_prefix}|grp2"
585
- with st.expander("Generative Config"):
586
- render_generative_config(key_prefix)
587
- with st.expander("Retrieval Config"):
588
- render_retrieval_config(key_prefix)
589
 
590
  grp1b, grp2b = st.columns(2)
591
  sbs_cols = {"grp1": grp1b, "grp2": grp2b}
 
471
  "Enter a query that can be answered with congressional legislation:",
472
  key=f"{key_prefix}|query",
473
  )
 
 
 
 
 
 
 
 
474
  query_submitted = st.form_submit_button("Submit")
475
 
476
+ col1, col2 = st.columns(2)
477
+ with col1:
478
+ with st.expander("Generative Config"):
479
+ render_generative_config(key_prefix)
480
+ with col2:
481
+ with st.expander("Retrieval Config"):
482
+ render_retrieval_config(key_prefix)
483
+
484
  if query_submitted:
485
 
486
  llm = get_llm(key_prefix)
 
569
  )
570
  query_submitted = st.form_submit_button("Submit")
571
 
572
+ grp1a, grp2a = st.columns(2)
573
+
574
+ with grp1a:
575
+ st.header("Group 1")
576
+ key_prefix = f"{base_key_prefix}|grp1"
577
+ with st.expander("Generative Config"):
578
+ render_generative_config(key_prefix)
579
+ with st.expander("Retrieval Config"):
580
+ render_retrieval_config(key_prefix)
581
+
582
+ with grp2a:
583
+ st.header("Group 2")
584
+ key_prefix = f"{base_key_prefix}|grp2"
585
+ with st.expander("Generative Config"):
586
+ render_generative_config(key_prefix)
587
+ with st.expander("Retrieval Config"):
588
+ render_retrieval_config(key_prefix)
589
 
590
  grp1b, grp2b = st.columns(2)
591
  sbs_cols = {"grp1": grp1b, "grp2": grp2b}