Prageeth-1 commited on
Commit
d5f2cc3
·
verified ·
1 Parent(s): 90365d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -285,15 +285,10 @@ with tab2:
285
  st.error("Please enter a question.")
286
 
287
  #generate the answer based on selected news content using the given model
288
-
289
- if uploaded_file is None:
290
- pass
291
- else:
292
- df1 = pd.read_csv(uploaded_file)
293
 
294
  st.markdown("---")
295
  st.header("Ask Questions Based on Your News Content")
296
- context_1 = st.selectbox("Choose an article for the question:", df1['content'].tolist())
297
 
298
  question_1 = st.text_input("Enter your question:", key="question_input")
299
  if st.button("Get Answer", key="get_answer_1"):
 
285
  st.error("Please enter a question.")
286
 
287
  #generate the answer based on selected news content using the given model
 
 
 
 
 
288
 
289
  st.markdown("---")
290
  st.header("Ask Questions Based on Your News Content")
291
+ context_1 = st.text_area("Enter News Content", height=100)
292
 
293
  question_1 = st.text_input("Enter your question:", key="question_input")
294
  if st.button("Get Answer", key="get_answer_1"):