Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from transformers import pipeline
|
|
| 3 |
import google.generativeai as genai
|
| 4 |
from pytube import Search
|
| 5 |
|
| 6 |
-
# Load sentiment analysis model
|
| 7 |
-
mood_classifier = pipeline("sentiment-analysis")
|
| 8 |
|
| 9 |
# Functions
|
| 10 |
def detect_mood(text):
|
|
|
|
| 3 |
import google.generativeai as genai
|
| 4 |
from pytube import Search
|
| 5 |
|
| 6 |
+
# Load sentiment analysis model using PyTorch backend
|
| 7 |
+
mood_classifier = pipeline("sentiment-analysis", framework="pt") # Use PyTorch
|
| 8 |
|
| 9 |
# Functions
|
| 10 |
def detect_mood(text):
|