Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from ultralytics import YOLO
|
| 3 |
# Load model dari Hugging Face
|
| 4 |
-
model = YOLO("https://huggingface.co/markgalih27/Land-Use-Classification/
|
| 5 |
# Daftar kelas sesuai model
|
| 6 |
class_names = ['agricultural', 'airplane','beach', 'buildings', 'denseresidential', 'forest', 'freeway', 'harbor', 'mediumresidential', 'parkinglot', 'river', 'runway', 'sparseresidential']
|
| 7 |
def classify_image(image):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from ultralytics import YOLO
|
| 3 |
# Load model dari Hugging Face
|
| 4 |
+
model = YOLO("https://huggingface.co/markgalih27/Land-Use-Classification/resolve/main/best%20(1).pt")
|
| 5 |
# Daftar kelas sesuai model
|
| 6 |
class_names = ['agricultural', 'airplane','beach', 'buildings', 'denseresidential', 'forest', 'freeway', 'harbor', 'mediumresidential', 'parkinglot', 'river', 'runway', 'sparseresidential']
|
| 7 |
def classify_image(image):
|