Spaces:
Runtime error
Runtime error
oryx1729
commited on
Commit
•
65935d6
1
Parent(s):
062c3f5
Update UI layout
Browse files
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 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
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__":
|