lizadakhova commited on
Commit
44541e4
1 Parent(s): 9e236a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # with torch.no_grad():
15
- # logits = bert_classifier(**encodings).logits
16
 
17
- st.markdown(encodings)
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)