Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import gradio as gr
|
3 |
+
import yolov5
|
4 |
+
from PIL import Image
|
5 |
+
from huggingface_hub import hf_hub_download
|
6 |
+
import os
|
7 |
+
|
8 |
+
|
9 |
+
app_title = "Detect san pham VSK"
|
10 |
+
model_ids = ['linhcuem/gold_yolov5m']
|
11 |
+
|
12 |
+
current_model_id = model_ids[-1]
|
13 |
+
model = yolov5.load(current_model_id)
|
14 |
+
|