herztard commited on
Commit
46060d2
·
1 Parent(s): 1d14b0f

add limits

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"]):