Prageeth-1 commited on
Commit
ad33198
·
verified ·
1 Parent(s): 5fd7fa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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']}")