Spaces:
Sleeping
Sleeping
Commit
·
95869a6
1
Parent(s):
5a92277
Update pages/answers.py
Browse files- pages/answers.py +2 -3
pages/answers.py
CHANGED
@@ -65,13 +65,12 @@ def main():
|
|
65 |
|
66 |
context = st.text_area("**:blue[Context]**", "Enter the context here...")
|
67 |
question = st.text_input("**:blue[Question]**", "Enter the question here...")
|
68 |
-
|
69 |
if st.button(":blue[**Random Example**]"):
|
70 |
pair = random.choice(pairs)
|
71 |
context = pair['context']
|
72 |
question = pair['question']
|
73 |
-
|
74 |
-
st.text_input("**Question**", value=question)
|
75 |
|
76 |
if st.button(":blue[**Get Answer**]"):
|
77 |
if context.strip() == "" or question.strip() == "":
|
|
|
65 |
|
66 |
context = st.text_area("**:blue[Context]**", "Enter the context here...")
|
67 |
question = st.text_input("**:blue[Question]**", "Enter the question here...")
|
68 |
+
|
69 |
if st.button(":blue[**Random Example**]"):
|
70 |
pair = random.choice(pairs)
|
71 |
context = pair['context']
|
72 |
question = pair['question']
|
73 |
+
|
|
|
74 |
|
75 |
if st.button(":blue[**Get Answer**]"):
|
76 |
if context.strip() == "" or question.strip() == "":
|