Spaces:
Runtime error
Runtime error
ivyblossom
commited on
Commit
•
4f3f5b9
1
Parent(s):
93ebde3
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def main():
|
|
25 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
26 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
27 |
|
28 |
-
if st.button("
|
29 |
# Perform sentiment analysis
|
30 |
inputs = tokenizer(text, padding=True, truncation=True, return_tensors="pt")
|
31 |
inputs = inputs.to(device)
|
|
|
25 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
26 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
27 |
|
28 |
+
if st.button("Submit"):
|
29 |
# Perform sentiment analysis
|
30 |
inputs = tokenizer(text, padding=True, truncation=True, return_tensors="pt")
|
31 |
inputs = inputs.to(device)
|