Spaces:
Sleeping
Sleeping
add limits
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ if st.button("Get tags"):
|
|
56 |
st.write(article_text[:500] + "...")
|
57 |
|
58 |
with st.spinner("Analyzing... Please wait."):
|
59 |
-
result = model(article_text, categories, multi_label=True)
|
60 |
|
61 |
st.write("**Predicted Tags:**")
|
62 |
for label, score in zip(result["labels"], result["scores"]):
|
|
|
56 |
st.write(article_text[:500] + "...")
|
57 |
|
58 |
with st.spinner("Analyzing... Please wait."):
|
59 |
+
result = model(article_text[:2000], categories, multi_label=True)
|
60 |
|
61 |
st.write("**Predicted Tags:**")
|
62 |
for label, score in zip(result["labels"], result["scores"]):
|