Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -297,7 +297,7 @@ with tab2:
|
|
| 297 |
context_1 = st.text_area("Enter the news content (context):")
|
| 298 |
question_1 = st.text_input("Enter your question:" , key="question_input" )
|
| 299 |
|
| 300 |
-
if st.button("Get Answer"):
|
| 301 |
if context_1 and question_1:
|
| 302 |
answer_1 = qa_pipeline({'context': context, 'question': question})
|
| 303 |
st.success(f"Answer: {answer_1['answer']}")
|
|
|
|
| 297 |
context_1 = st.text_area("Enter the news content (context):")
|
| 298 |
question_1 = st.text_input("Enter your question:" , key="question_input" )
|
| 299 |
|
| 300 |
+
if st.button("Get Answer" , key="get_answer_1"):
|
| 301 |
if context_1 and question_1:
|
| 302 |
answer_1 = qa_pipeline({'context': context, 'question': question})
|
| 303 |
st.success(f"Answer: {answer_1['answer']}")
|