Spaces:
Runtime error
Runtime error
Commit
·
ada8c0d
1
Parent(s):
f940e4d
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,13 +52,18 @@ inputs = [
|
|
| 52 |
outputs = gr.outputs.Image(type="filepath", label="Output Image")
|
| 53 |
title = "Ui form : web form ui field Detection in Images"
|
| 54 |
|
| 55 |
-
|
| 56 |
-
fn=
|
| 57 |
-
inputs=
|
| 58 |
-
outputs=
|
| 59 |
-
title=
|
|
|
|
| 60 |
examples=image_path,
|
| 61 |
cache_examples=False,
|
| 62 |
-
theme='huggingface'
|
| 63 |
)
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
outputs = gr.outputs.Image(type="filepath", label="Output Image")
|
| 53 |
title = "Ui form : web form ui field Detection in Images"
|
| 54 |
|
| 55 |
+
interface_image = gr.Interface(
|
| 56 |
+
fn=yolov8_img_inference,
|
| 57 |
+
inputs=inputs_image,
|
| 58 |
+
outputs=outputs_image,
|
| 59 |
+
title=model_heading,
|
| 60 |
+
description=description,
|
| 61 |
examples=image_path,
|
| 62 |
cache_examples=False,
|
| 63 |
+
theme='huggingface'
|
| 64 |
)
|
| 65 |
+
|
| 66 |
+
gr.TabbedInterface(
|
| 67 |
+
[interface_image],
|
| 68 |
+
tab_names=['Image inference']
|
| 69 |
+
).queue().launch()
|