Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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"):
|