Spaces:
Sleeping
Sleeping
mhdiqbalpradipta
commited on
Commit
•
fc68f43
1
Parent(s):
7752000
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import torch
|
|
5 |
# Memuat model untuk klasifikasi makanan
|
6 |
food_classifier = pipeline(task="image-classification", model="mhdiqbalpradipta/minang_food_classification")
|
7 |
|
|
|
8 |
def prediksi_makanan(gambar):
|
9 |
# Melakukan prediksi menggunakan model
|
10 |
hasil = food_classifier(images=gambar)[0]
|
|
|
5 |
# Memuat model untuk klasifikasi makanan
|
6 |
food_classifier = pipeline(task="image-classification", model="mhdiqbalpradipta/minang_food_classification")
|
7 |
|
8 |
+
|
9 |
def prediksi_makanan(gambar):
|
10 |
# Melakukan prediksi menggunakan model
|
11 |
hasil = food_classifier(images=gambar)[0]
|