Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,10 +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 |
|
| 157 |
-
if
|
| 158 |
-
|
| 159 |
-
|
| 160 |
context = ' '.join(qa_df['predicted_category'].tolist())
|
| 161 |
st.write(f"Loaded {len(qa_df)} news excerpts")
|
| 162 |
|
|
|
|
| 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")
|
| 162 |
|