Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
import streamlit as st
|
| 3 |
from transformers import DistilBertTokenizerFast, DistilBertForSequenceClassification
|
| 4 |
import torch
|
|
@@ -65,4 +64,4 @@ if st.button("Predict Sentiment"):
|
|
| 65 |
st.write(f"Sentiment: {sentiment}")
|
| 66 |
st.write(f"Confidence: {confidence:.2f}%")
|
| 67 |
else:
|
| 68 |
-
st.write("Please enter some text.")
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import DistilBertTokenizerFast, DistilBertForSequenceClassification
|
| 3 |
import torch
|
|
|
|
| 64 |
st.write(f"Sentiment: {sentiment}")
|
| 65 |
st.write(f"Confidence: {confidence:.2f}%")
|
| 66 |
else:
|
| 67 |
+
st.write("Please enter some text.")
|