Spaces:
Runtime error
Runtime error
jiawenchim
commited on
Commit
•
70a42a9
1
Parent(s):
1c4d450
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,8 @@ tab1 = gr.Interface(fn=predict,
|
|
127 |
inputs=gr.Image(type="pil"),
|
128 |
outputs=gr.Image(type="pil"),
|
129 |
examples=sample_images,
|
130 |
-
title="Image - Object Detection (Battery and Dice)"
|
|
|
131 |
)
|
132 |
|
133 |
tab2 = gr.Interface(
|
@@ -135,10 +136,11 @@ tab2 = gr.Interface(
|
|
135 |
inputs=gr.File(label="Upload a video"),
|
136 |
outputs=gr.File(label="output"),
|
137 |
title='Video - Object Detection (Battery and Dice)',
|
138 |
-
examples=[["Three Dice Trick.mp4"],["Look at the fork and battery-in power.mp4"]]
|
|
|
139 |
)
|
140 |
|
141 |
|
142 |
-
iface = gr.TabbedInterface([tab1, tab2], tab_names = ['Image','Video'], title='Battery and Dice detection'
|
143 |
|
144 |
iface.launch(share=True)
|
|
|
127 |
inputs=gr.Image(type="pil"),
|
128 |
outputs=gr.Image(type="pil"),
|
129 |
examples=sample_images,
|
130 |
+
title="Image - Object Detection (Battery and Dice)",
|
131 |
+
description='Model used: SSD MobileNet V1 FPN 640x640.'
|
132 |
)
|
133 |
|
134 |
tab2 = gr.Interface(
|
|
|
136 |
inputs=gr.File(label="Upload a video"),
|
137 |
outputs=gr.File(label="output"),
|
138 |
title='Video - Object Detection (Battery and Dice)',
|
139 |
+
examples=[["Three Dice Trick.mp4"],["Look at the fork and battery-in power.mp4"]],
|
140 |
+
description='Model used: SSD MobileNet V1 FPN 640x640. For video processing interface, I would like to endorse student 23B712M for his works.'
|
141 |
)
|
142 |
|
143 |
|
144 |
+
iface = gr.TabbedInterface([tab1, tab2], tab_names = ['Image','Video'], title='Battery and Dice detection')
|
145 |
|
146 |
iface.launch(share=True)
|