Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,10 +96,10 @@ image_interface = gr.Interface(
|
|
| 96 |
gr.inputs.Image(type="pil", label="Input Image"),
|
| 97 |
gr.inputs.Dropdown(
|
| 98 |
choices=[
|
| 99 |
-
"
|
| 100 |
#"kadirnar/yolov7-v0.1",
|
| 101 |
],
|
| 102 |
-
default="
|
| 103 |
label="Model",
|
| 104 |
)
|
| 105 |
#gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size")
|
|
@@ -108,7 +108,7 @@ image_interface = gr.Interface(
|
|
| 108 |
],
|
| 109 |
outputs=gr.outputs.Image(type="filepath", label="Output Image"),
|
| 110 |
title="Smart Environmental Eye (SEE)",
|
| 111 |
-
examples=[['image1.jpg', '
|
| 112 |
cache_examples=True,
|
| 113 |
theme='huggingface',
|
| 114 |
)
|
|
@@ -120,10 +120,10 @@ video_interface = gr.Interface(
|
|
| 120 |
gr.inputs.Video(source = "upload", type = "mp4", label = "Input Video"),
|
| 121 |
gr.inputs.Dropdown(
|
| 122 |
choices=[
|
| 123 |
-
"
|
| 124 |
#"kadirnar/yolov7-v0.1",
|
| 125 |
],
|
| 126 |
-
default="
|
| 127 |
label="Model",
|
| 128 |
),
|
| 129 |
],
|
|
|
|
| 96 |
gr.inputs.Image(type="pil", label="Input Image"),
|
| 97 |
gr.inputs.Dropdown(
|
| 98 |
choices=[
|
| 99 |
+
"Aalaa/Yolov7_Visual_Pollution_Detection",
|
| 100 |
#"kadirnar/yolov7-v0.1",
|
| 101 |
],
|
| 102 |
+
default="Aalaa/Yolov7_Visual_Pollution_Detection",
|
| 103 |
label="Model",
|
| 104 |
)
|
| 105 |
#gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size")
|
|
|
|
| 108 |
],
|
| 109 |
outputs=gr.outputs.Image(type="filepath", label="Output Image"),
|
| 110 |
title="Smart Environmental Eye (SEE)",
|
| 111 |
+
examples=[['image1.jpg', 'Aalaa/Yolov7_Visual_Pollution_Detection', 640, 0.25, 0.45]],
|
| 112 |
cache_examples=True,
|
| 113 |
theme='huggingface',
|
| 114 |
)
|
|
|
|
| 120 |
gr.inputs.Video(source = "upload", type = "mp4", label = "Input Video"),
|
| 121 |
gr.inputs.Dropdown(
|
| 122 |
choices=[
|
| 123 |
+
"Aalaa/Yolov7_Visual_Pollution_Detection",
|
| 124 |
#"kadirnar/yolov7-v0.1",
|
| 125 |
],
|
| 126 |
+
default="Aalaa/Yolov7_Visual_Pollution_Detection",
|
| 127 |
label="Model",
|
| 128 |
),
|
| 129 |
],
|