Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,6 @@ import gradio as gr
|
|
4 |
from huggingface_hub import snapshot_download
|
5 |
import os
|
6 |
|
7 |
-
model_path = "/content/datasets/best_int8_openvino_model"
|
8 |
-
|
9 |
def load_model(repo_id):
|
10 |
download_dir = snapshot_download(repo_id)
|
11 |
print(download_dir)
|
@@ -27,7 +25,7 @@ def predict(pilimg):
|
|
27 |
return out_pilimg
|
28 |
|
29 |
|
30 |
-
REPO_ID = "
|
31 |
detection_model = load_model(REPO_ID)
|
32 |
|
33 |
gr.Interface(fn=predict,
|
|
|
4 |
from huggingface_hub import snapshot_download
|
5 |
import os
|
6 |
|
|
|
|
|
7 |
def load_model(repo_id):
|
8 |
download_dir = snapshot_download(repo_id)
|
9 |
print(download_dir)
|
|
|
25 |
return out_pilimg
|
26 |
|
27 |
|
28 |
+
REPO_ID = "raufbagharib/highlighters_earbuds_detection"
|
29 |
detection_model = load_model(REPO_ID)
|
30 |
|
31 |
gr.Interface(fn=predict,
|