Spaces:
Runtime error
Runtime error
Commit
·
44541e4
1
Parent(s):
9e236a3
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ st.markdown("Hello!")
|
|
11 |
sentence = st.text_input("Please, enter your sentence. I will try to make it more positive :)")
|
12 |
|
13 |
encodings = tokenizer(sentence, return_tensors='pt', padding=True)
|
14 |
-
|
15 |
-
|
16 |
|
17 |
-
st.markdown(
|
|
|
11 |
sentence = st.text_input("Please, enter your sentence. I will try to make it more positive :)")
|
12 |
|
13 |
encodings = tokenizer(sentence, return_tensors='pt', padding=True)
|
14 |
+
with torch.no_grad():
|
15 |
+
logits = bert_classifier(**encodings).logits
|
16 |
|
17 |
+
st.markdown(logits)
|