Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ st.markdown("""
|
|
| 102 |
|
| 103 |
st.markdown("""
|
| 104 |
<div class="header">
|
| 105 |
-
<img src="news_logo.
|
| 106 |
<h1>Daily Mirror News Analyzer</h1>
|
| 107 |
</div>
|
| 108 |
""", unsafe_allow_html=True)
|
|
@@ -117,7 +117,7 @@ st.markdown("""
|
|
| 117 |
""")
|
| 118 |
|
| 119 |
# Create tabs for different functionalities
|
| 120 |
-
tab1, tab2, tab3 = st.tabs(["
|
| 121 |
|
| 122 |
with tab1:
|
| 123 |
|
|
@@ -354,7 +354,7 @@ with st.sidebar:
|
|
| 354 |
st.image("https://via.placeholder.com/150x50?text=Daily+Mirror", width=150)
|
| 355 |
st.title("About")
|
| 356 |
st.write("""
|
| 357 |
-
This app helps analyze news content
|
| 358 |
- Classify news into categories
|
| 359 |
- Answer questions about news content
|
| 360 |
- Perform advanced text analysis
|
|
@@ -362,20 +362,15 @@ with st.sidebar:
|
|
| 362 |
|
| 363 |
st.title("Instructions")
|
| 364 |
st.write("""
|
| 365 |
-
1. Upload a CSV file with '
|
| 366 |
2. Click classify to categorize news
|
| 367 |
3. Download results as CSV
|
| 368 |
4. Use Q&A tab to ask questions
|
| 369 |
""")
|
| 370 |
|
| 371 |
-
|
| 372 |
-
st.write("""
|
| 373 |
-
- Classification: Fine-tuned DistilBERT
|
| 374 |
-
- Q&A: RoBERTa-base
|
| 375 |
-
- Sentiment: DistilBERT-base
|
| 376 |
-
""")
|
| 377 |
|
| 378 |
-
st.markdown("[View model on Hugging Face](https://huggingface.co/
|
| 379 |
|
| 380 |
# Footer
|
| 381 |
st.markdown("---")
|
|
|
|
| 102 |
|
| 103 |
st.markdown("""
|
| 104 |
<div class="header">
|
| 105 |
+
<img src="news_logo.jpg" alt="Logo">
|
| 106 |
<h1>Daily Mirror News Analyzer</h1>
|
| 107 |
</div>
|
| 108 |
""", unsafe_allow_html=True)
|
|
|
|
| 117 |
""")
|
| 118 |
|
| 119 |
# Create tabs for different functionalities
|
| 120 |
+
tab1, tab2, tab3 = st.tabs(["News Classification", "Q&A Pipeline", "Advanced Features"])
|
| 121 |
|
| 122 |
with tab1:
|
| 123 |
|
|
|
|
| 354 |
st.image("https://via.placeholder.com/150x50?text=Daily+Mirror", width=150)
|
| 355 |
st.title("About")
|
| 356 |
st.write("""
|
| 357 |
+
This app helps analyze news content:
|
| 358 |
- Classify news into categories
|
| 359 |
- Answer questions about news content
|
| 360 |
- Perform advanced text analysis
|
|
|
|
| 362 |
|
| 363 |
st.title("Instructions")
|
| 364 |
st.write("""
|
| 365 |
+
1. Upload a CSV file with 'content' column
|
| 366 |
2. Click classify to categorize news
|
| 367 |
3. Download results as CSV
|
| 368 |
4. Use Q&A tab to ask questions
|
| 369 |
""")
|
| 370 |
|
| 371 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
|
| 373 |
+
st.markdown("[View model on Hugging Face](https://huggingface.co/Imasha17/News_classification.3)")
|
| 374 |
|
| 375 |
# Footer
|
| 376 |
st.markdown("---")
|