rararara9999 commited on
Commit
ff6c4b7
·
verified ·
1 Parent(s): b6a6fd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,7 +17,8 @@ def main():
17
  if user_input:
18
  try:
19
  # Debugging: Print the tokenized input
20
- st.write("Tokenized Input:", tokenizer(user_input))
 
21
 
22
  result = sentiment_pipeline(user_input)
23
  sentiment = result["label"]
@@ -33,3 +34,4 @@ if __name__ == "__main__":
33
 
34
 
35
 
 
 
17
  if user_input:
18
  try:
19
  # Debugging: Print the tokenized input
20
+ tokenized_input = tokenizer(user_input, return_tensors="pt")
21
+ st.write("Tokenized Input:", tokenized_input)
22
 
23
  result = sentiment_pipeline(user_input)
24
  sentiment = result["label"]
 
34
 
35
 
36
 
37
+