Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,6 @@ risk_categories = {
|
|
| 30 |
"low_risk": [1, 2, 3, 4, 6, 9, 10, 11, 14] # Diğerleri
|
| 31 |
}
|
| 32 |
|
| 33 |
-
@gr.cache
|
| 34 |
def load_model():
|
| 35 |
"""Senin trained ViT modelini yükle"""
|
| 36 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
|
| 30 |
"low_risk": [1, 2, 3, 4, 6, 9, 10, 11, 14] # Diğerleri
|
| 31 |
}
|
| 32 |
|
|
|
|
| 33 |
def load_model():
|
| 34 |
"""Senin trained ViT modelini yükle"""
|
| 35 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|