Spaces:
Running
Running
Update app.py
Browse files
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="
|
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 |
|