Spaces:
Runtime error
Runtime error
Commit
•
a3e66f4
1
Parent(s):
6a228c8
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,6 @@ labels = {
|
|
18 |
}
|
19 |
|
20 |
def predict_topic_by_title_and_abstract(text, model):
|
21 |
-
st.write(labels)
|
22 |
-
st.write(labels.values())
|
23 |
tokens = tokenizer(text, return_tensors='pt', truncation=True)
|
24 |
with torch.no_grad():
|
25 |
logits = model(**tokens).logits
|
|
|
18 |
}
|
19 |
|
20 |
def predict_topic_by_title_and_abstract(text, model):
|
|
|
|
|
21 |
tokens = tokenizer(text, return_tensors='pt', truncation=True)
|
22 |
with torch.no_grad():
|
23 |
logits = model(**tokens).logits
|