Spaces:
Sleeping
Sleeping
AlshimaaGamalAlsaied
commited on
Commit
·
3e5f5c4
1
Parent(s):
8963316
update
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from huggingface_hub import hf_hub_download
|
|
11 |
|
12 |
def yolov7_inference(
|
13 |
image: gr.inputs.Image = None,
|
14 |
-
model_path: gr.inputs.Dropdown =
|
15 |
image_size: gr.inputs.Slider = 640,
|
16 |
conf_threshold: gr.inputs.Slider = 0.25,
|
17 |
iou_threshold: gr.inputs.Slider = 0.45,
|
@@ -39,10 +39,10 @@ inputs = [
|
|
39 |
gr.inputs.Image(type="pil", label="Input Image"),
|
40 |
gr.inputs.Dropdown(
|
41 |
choices=[
|
42 |
-
"
|
43 |
"kadirnar/yolov7-v0.1",
|
44 |
],
|
45 |
-
default="
|
46 |
label="Model",
|
47 |
),
|
48 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
|
|
11 |
|
12 |
def yolov7_inference(
|
13 |
image: gr.inputs.Image = None,
|
14 |
+
model_path: gr.inputs.Dropdown = hf_hub_download(repo_id=f"{best_baseline}", filename=f"{best_baseline}.pt"),
|
15 |
image_size: gr.inputs.Slider = 640,
|
16 |
conf_threshold: gr.inputs.Slider = 0.25,
|
17 |
iou_threshold: gr.inputs.Slider = 0.45,
|
|
|
39 |
gr.inputs.Image(type="pil", label="Input Image"),
|
40 |
gr.inputs.Dropdown(
|
41 |
choices=[
|
42 |
+
"kadirnar/yolov7-tiny-v0.1",
|
43 |
"kadirnar/yolov7-v0.1",
|
44 |
],
|
45 |
+
default="kadirnar/yolov7-tiny-v0.1",
|
46 |
label="Model",
|
47 |
),
|
48 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|