Spaces:
Sleeping
Sleeping
Commit
·
0d460f6
1
Parent(s):
6615dba
Update pages/answers.py
Browse files- pages/answers.py +2 -3
pages/answers.py
CHANGED
@@ -71,8 +71,8 @@ def main():
|
|
71 |
question = st.text_input("**:blue[Question]**", question_placeholder, key='Question')
|
72 |
|
73 |
if random_button:
|
74 |
-
context = st.text_area("**:blue[Context]**", st.session_state['Context'], key='
|
75 |
-
question = st.text_input("**:blue[Question]**", st.session_state['Question'], key='
|
76 |
|
77 |
if st.button(":blue[**Get Answer**]"):
|
78 |
if context.strip() == "" or question.strip() == "":
|
@@ -81,6 +81,5 @@ def main():
|
|
81 |
answer = get_answer(context, question)
|
82 |
st.success(f"Answer: {answer}")
|
83 |
|
84 |
-
|
85 |
if __name__ == "__main__":
|
86 |
main()
|
|
|
71 |
question = st.text_input("**:blue[Question]**", question_placeholder, key='Question')
|
72 |
|
73 |
if random_button:
|
74 |
+
context = st.text_area("**:blue[Context]**", st.session_state['Context'], key='RandomContext')
|
75 |
+
question = st.text_input("**:blue[Question]**", st.session_state['Question'], key='RandomQuestion')
|
76 |
|
77 |
if st.button(":blue[**Get Answer**]"):
|
78 |
if context.strip() == "" or question.strip() == "":
|
|
|
81 |
answer = get_answer(context, question)
|
82 |
st.success(f"Answer: {answer}")
|
83 |
|
|
|
84 |
if __name__ == "__main__":
|
85 |
main()
|