Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,18 +131,24 @@ detection_model = load_model()
|
|
131 |
# ).launch(share=True)
|
132 |
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
138 |
outputs=gr.Video(),
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
|
|
|
|
147 |
|
148 |
|
|
|
131 |
# ).launch(share=True)
|
132 |
|
133 |
|
134 |
+
a = os.path.join(os.path.dirname(__file__), "data/a.mp4") # Video
|
135 |
+
b = os.path.join(os.path.dirname(__file__), "data/b.mp4") # Video
|
136 |
+
c = os.path.join(os.path.dirname(__file__), "data/c.mp4") # Video
|
137 |
+
|
138 |
+
|
139 |
+
demo = gr.Interface(
|
140 |
+
fn=lambda x: x,
|
141 |
+
inputs=gr.Video(),
|
142 |
outputs=gr.Video(),
|
143 |
+
examples=[
|
144 |
+
[a],
|
145 |
+
[b],
|
146 |
+
[c],
|
147 |
+
],
|
148 |
+
cache_examples=True
|
149 |
+
)
|
150 |
+
|
151 |
+
if __name__ == "__main__":
|
152 |
+
demo.launch()
|
153 |
|
154 |
|