Spaces:
Running
Running
chore: providing example URL list
Browse files
app.py
CHANGED
@@ -193,6 +193,15 @@ models = {
|
|
193 |
"BERT (Bidirectional Encoder Representations from Transformers)": "A powerful pre-trained model based on the Transformer architecture. It excels at understanding the nuances of language and can be fine-tuned for various NLP tasks like text classification."
|
194 |
}
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
# Create expanders containing list of categories can be classified
|
197 |
with st.expander("Category List"):
|
198 |
# Title for each category
|
@@ -216,7 +225,11 @@ with st.expander("Available Models"):
|
|
216 |
for model_name, description in models.items():
|
217 |
st.subheader(model_name)
|
218 |
st.write(description)
|
219 |
-
|
|
|
|
|
|
|
|
|
220 |
# Explain to user why this project is only worked for CNN domain
|
221 |
with st.expander("Tips", expanded=True):
|
222 |
st.write(
|
|
|
193 |
"BERT (Bidirectional Encoder Representations from Transformers)": "A powerful pre-trained model based on the Transformer architecture. It excels at understanding the nuances of language and can be fine-tuned for various NLP tasks like text classification."
|
194 |
}
|
195 |
|
196 |
+
|
197 |
+
# CNN URL Example List
|
198 |
+
URL_Example = [
|
199 |
+
'https://edition.cnn.com/2012/01/31/health/frank-njenga-mental-health/index.html',
|
200 |
+
'https://edition.cnn.com/2024/04/30/entertainment/barbra-streisand-melissa-mccarthy-ozempic/index.html',
|
201 |
+
'https://edition.cnn.com/2024/04/30/sport/lebron-james-lakers-future-nba-spt-intl/index.html',
|
202 |
+
'https://edition.cnn.com/2024/04/30/business/us-home-prices-rose-in-february/index.html'
|
203 |
+
]
|
204 |
+
|
205 |
# Create expanders containing list of categories can be classified
|
206 |
with st.expander("Category List"):
|
207 |
# Title for each category
|
|
|
225 |
for model_name, description in models.items():
|
226 |
st.subheader(model_name)
|
227 |
st.write(description)
|
228 |
+
|
229 |
+
with st.expander("URLs Example"):
|
230 |
+
for url in URL_Example:
|
231 |
+
st.write(f"- {url}")
|
232 |
+
|
233 |
# Explain to user why this project is only worked for CNN domain
|
234 |
with st.expander("Tips", expanded=True):
|
235 |
st.write(
|