oryx1729 commited on
Commit
65935d6
1 Parent(s): 062c3f5

Update UI layout

Browse files
Files changed (1) hide show
  1. app.py +18 -14
app.py CHANGED
@@ -92,20 +92,24 @@ def main():
92
 
93
  query_type = st.radio("Type",
94
  ("Retrieval Augmented", "Retrieval Augmented with Web Search"))
95
- col_1, col_2 = st.columns(2)
96
-
97
- with col_1:
98
- st.text("PLAIN")
99
- answers = p1.run(input)
100
- st.text(answers['results'][0])
101
-
102
- with col_2:
103
- st.write(query_type.upper())
104
- if query_type == "Retrieval Augmented":
105
- answers_2 = p2.run(input)
106
- else:
107
- answers_2 = p3.run(input)
108
- st.text(answers_2['results'][0])
 
 
 
 
109
 
110
 
111
  if __name__ == "__main__":
 
92
 
93
  query_type = st.radio("Type",
94
  ("Retrieval Augmented", "Retrieval Augmented with Web Search"))
95
+ # col_1, col_2 = st.columns(2)
96
+
97
+ if st.button("Random Question"):
98
+ new_text = "Streamlit is great!"
99
+ input.value = new_text
100
+
101
+ # with col_1:
102
+ # st.text("PLAIN")
103
+ answers = p1.run(input)
104
+ st.text_area("PLAIN GPT", answers['results'][0])
105
+
106
+ # with col_2:
107
+ # st.write(query_type.upper())
108
+ if query_type == "Retrieval Augmented":
109
+ answers_2 = p2.run(input)
110
+ else:
111
+ answers_2 = p3.run(input)
112
+ st.text_area(query_type.upper(),answers_2['results'][0])
113
 
114
 
115
  if __name__ == "__main__":