Prageeth-1 commited on
Commit
96b5b5f
·
verified ·
1 Parent(s): 3cf6a27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -142,8 +142,7 @@ with tab1:
142
  mime='text/csv'
143
  )
144
 
145
- # Store classification results for Q&A pipeline
146
- st.session_state['qa_df'] = df
147
 
148
 
149
  with tab2:
@@ -152,10 +151,10 @@ with tab2:
152
 
153
 
154
 
155
- if 'qa_df' in st.session_state:
156
- qa_df = st.session_state['qa_df']
157
- context = ' '.join(qa_df['content'].tolist()) # Use predictions for Q&A
158
- st.write(f"Loaded {len(qa_df)} news excerpts")
159
 
160
  else:
161
  st.warning("Please upload a CSV file.")
 
142
  mime='text/csv'
143
  )
144
 
145
+
 
146
 
147
 
148
  with tab2:
 
151
 
152
 
153
 
154
+ if uploaded_file is not None:
155
+
156
+ context = ' '.join(df['content'].tolist()) # Use predictions for Q&A
157
+ st.write(f"Loaded {len(df)} news excerpts")
158
 
159
  else:
160
  st.warning("Please upload a CSV file.")