Spaces:
Runtime error
Runtime error
Commit
·
97967a4
1
Parent(s):
49552ec
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ with st.form("Taxonomizer"):
|
|
76 |
st.caption('We **do not** recommend using ArXivTaxonomizer© to choose tags for you new paper.')
|
77 |
if submitted:
|
78 |
if title == '':
|
79 |
-
st.markdown("You are most definitely abusing our service.
|
80 |
else:
|
81 |
prompt = 'Title: ' + title + ' Abstract: ' + abstract
|
82 |
tokens = tokenizer(prompt, truncation=True, padding='max_length', return_tensors='pt')['input_ids']
|
|
|
76 |
st.caption('We **do not** recommend using ArXivTaxonomizer© to choose tags for you new paper.')
|
77 |
if submitted:
|
78 |
if title == '':
|
79 |
+
st.markdown("You are most definitely abusing our service. Have the decency to at least enter a title.")
|
80 |
else:
|
81 |
prompt = 'Title: ' + title + ' Abstract: ' + abstract
|
82 |
tokens = tokenizer(prompt, truncation=True, padding='max_length', return_tensors='pt')['input_ids']
|