Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -284,7 +284,7 @@ with tab2:
|
|
| 284 |
#generate the answer based on selected news content using the given model
|
| 285 |
st.markdown("---")
|
| 286 |
st.header("Ask Questions Based on Your News Content")
|
| 287 |
-
|
| 288 |
|
| 289 |
question_1 = st.text_input("Enter your question:", key="question_input")
|
| 290 |
if st.button("Get Answer", key="get_answer_1"):
|
|
|
|
| 284 |
#generate the answer based on selected news content using the given model
|
| 285 |
st.markdown("---")
|
| 286 |
st.header("Ask Questions Based on Your News Content")
|
| 287 |
+
context_1 = st.selectbox("Choose an article for the question:", df['content'].tolist())
|
| 288 |
|
| 289 |
question_1 = st.text_input("Enter your question:", key="question_input")
|
| 290 |
if st.button("Get Answer", key="get_answer_1"):
|