Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -35,16 +35,16 @@ with tab1:
|
|
35 |
contextInput= ""
|
36 |
questionInput = ""
|
37 |
|
|
|
|
|
|
|
38 |
if example:
|
39 |
questionInput = sample_question
|
40 |
contextInput = sample_text
|
41 |
|
42 |
-
context = st.text_area("Enter the essay below:", value=contextInput, height=330)
|
43 |
-
question = st.text_input(label="Enter the question: ", value=questionInput)
|
44 |
|
45 |
-
|
46 |
button = st.button("Get answer")
|
47 |
-
if button
|
48 |
with st.spinner(text="Loading question model..."):
|
49 |
question_answerer = question_model()
|
50 |
with st.spinner(text="Getting answer..."):
|
|
|
35 |
contextInput= ""
|
36 |
questionInput = ""
|
37 |
|
38 |
+
context = st.text_area("Enter the essay below:", value=contextInput, height=330)
|
39 |
+
question = st.text_input(label="Enter the question: ", value=questionInput)
|
40 |
+
|
41 |
if example:
|
42 |
questionInput = sample_question
|
43 |
contextInput = sample_text
|
44 |
|
|
|
|
|
45 |
|
|
|
46 |
button = st.button("Get answer")
|
47 |
+
if button:
|
48 |
with st.spinner(text="Loading question model..."):
|
49 |
question_answerer = question_model()
|
50 |
with st.spinner(text="Getting answer..."):
|