Spaces:
Sleeping
Sleeping
rdsarjito commited on
Commit ·
feaf663
1
Parent(s): 4340065
3 commit
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from bs4 import BeautifulSoup
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
# === Konfigurasi Umum ===
|
| 10 |
-
MODEL_PATH = 'model/
|
| 11 |
LABELS = ['susu', 'kacang', 'telur', 'makanan_laut', 'gandum']
|
| 12 |
MAX_LEN = 128
|
| 13 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
# === Konfigurasi Umum ===
|
| 10 |
+
MODEL_PATH = 'model/alergen_model.pt' # Pastikan path dan nama file model benar
|
| 11 |
LABELS = ['susu', 'kacang', 'telur', 'makanan_laut', 'gandum']
|
| 12 |
MAX_LEN = 128
|
| 13 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|