Spaces:
Running
Running
feat: add autoplay and loop
Browse files
app.py
CHANGED
@@ -148,10 +148,17 @@ with gr.Blocks() as demo:
|
|
148 |
input = gr.Video(
|
149 |
value=default_value_input,
|
150 |
format="mp4",
|
|
|
|
|
151 |
label="input video",
|
152 |
sources=["upload"],
|
153 |
)
|
154 |
-
output_video = gr.Video(
|
|
|
|
|
|
|
|
|
|
|
155 |
output_raw = gr.Text(label="raw prediction")
|
156 |
|
157 |
fn = lambda video_filepath: predict(
|
|
|
148 |
input = gr.Video(
|
149 |
value=default_value_input,
|
150 |
format="mp4",
|
151 |
+
autoplay=True,
|
152 |
+
loop=True,
|
153 |
label="input video",
|
154 |
sources=["upload"],
|
155 |
)
|
156 |
+
output_video = gr.Video(
|
157 |
+
format="mp4",
|
158 |
+
label="model prediction",
|
159 |
+
autoplay=True,
|
160 |
+
loop=True,
|
161 |
+
)
|
162 |
output_raw = gr.Text(label="raw prediction")
|
163 |
|
164 |
fn = lambda video_filepath: predict(
|