Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def clean_text(text):
|
|
| 28 |
def predict_emotion(text):
|
| 29 |
|
| 30 |
cleaned_text = clean_text(text)
|
| 31 |
-
print("Processed Text:", cleaned_text)
|
| 32 |
|
| 33 |
results = model(cleaned_text)
|
| 34 |
return {item["label"]: item["score"] for item in results}
|
|
|
|
| 28 |
def predict_emotion(text):
|
| 29 |
|
| 30 |
cleaned_text = clean_text(text)
|
| 31 |
+
#print("Processed Text:", cleaned_text)
|
| 32 |
|
| 33 |
results = model(cleaned_text)
|
| 34 |
return {item["label"]: item["score"] for item in results}
|