achouffe commited on
Commit
f6ad7e6
·
verified ·
1 Parent(s): b5f64dc

feat: add autoplay and loop

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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(format="mp4", label="model prediction")
 
 
 
 
 
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(