Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from PIL import Image
|
|
8 |
import numpy as np
|
9 |
|
10 |
# Inisialisasi model deteksi menggunakan SAHI
|
11 |
-
model_path = "
|
12 |
confidence_threshold = 0.6 # Threshold kepercayaan
|
13 |
sahi_device = 'cuda' # Ganti dengan 'cpu' jika tidak menggunakan GPU
|
14 |
|
|
|
8 |
import numpy as np
|
9 |
|
10 |
# Inisialisasi model deteksi menggunakan SAHI
|
11 |
+
model_path = get_roboflow_model(model_id="nescafe-4base/46", api_key="Otg64Ra6wNOgDyjuhMYU")
|
12 |
confidence_threshold = 0.6 # Threshold kepercayaan
|
13 |
sahi_device = 'cuda' # Ganti dengan 'cpu' jika tidak menggunakan GPU
|
14 |
|