Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ def main():
|
|
| 17 |
if user_input:
|
| 18 |
try:
|
| 19 |
# Debugging: Print the tokenized input
|
| 20 |
-
|
|
|
|
| 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 |
+
|