Nadera03 commited on
Commit
7056488
·
verified ·
1 Parent(s): e5dac7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
7
 
8
  # Load models only once for speed
9
  emotion_model = pipeline("text-classification", model="bhadresh-savani/distilbert-base-uncased-emotion", device=0 if torch.cuda.is_available() else -1)
10
- gut_health_model = pipeline("text-classification", model="mrm8488/bert-mini-finetuned-age-prediction", device=0 if torch.cuda.is_available() else -1)
11
  retina_model = torch.hub.load("pytorch/vision:v0.10.0", "resnet18", pretrained=True)
12
  retina_model.eval()
13
 
 
7
 
8
  # Load models only once for speed
9
  emotion_model = pipeline("text-classification", model="bhadresh-savani/distilbert-base-uncased-emotion", device=0 if torch.cuda.is_available() else -1)
10
+ gut_health_model = pipeline("text-classification", model="nlptown/bert-base-multilingual-uncased-sentiment", device=0 if torch.cuda.is_available() else -1)
11
  retina_model = torch.hub.load("pytorch/vision:v0.10.0", "resnet18", pretrained=True)
12
  retina_model.eval()
13