ivyblossom commited on
Commit
4f3f5b9
1 Parent(s): 93ebde3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("Analyze"):
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)