Prageeth-1 commited on
Commit
1b285d2
·
verified ·
1 Parent(s): 71edf56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -153,9 +153,10 @@ with tab2:
153
  st.header("Question Answering Pipeline")
154
  st.write("Ask questions about news content and get answers from our AI model.")
155
 
156
- qa_df = uploaded_file
157
 
158
- if qa_df is not None:
 
159
 
160
  context = ' '.join(qa_df['predicted_category'].tolist())
161
  st.write(f"Loaded {len(qa_df)} news excerpts")
 
153
  st.header("Question Answering Pipeline")
154
  st.write("Ask questions about news content and get answers from our AI model.")
155
 
156
+ qa_file = uploaded_file
157
 
158
+ if qa_file is not None:
159
+ qa_df = pd.read_csv(qa_file)
160
 
161
  context = ' '.join(qa_df['predicted_category'].tolist())
162
  st.write(f"Loaded {len(qa_df)} news excerpts")