Akshayram1 commited on
Commit
0f1be6d
·
verified ·
1 Parent(s): 2bb9b0c

Update app.py

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