lastdefiance20 commited on
Commit
de47238
·
1 Parent(s): 9006e87

feat: add demo video

Browse files
Files changed (2) hide show
  1. .gitignore +3 -1
  2. app.py +12 -0
.gitignore CHANGED
@@ -213,4 +213,6 @@ marimo/_lsp/
213
  __marimo__/
214
 
215
  # Streamlit
216
- .streamlit/secrets.toml
 
 
 
213
  __marimo__/
214
 
215
  # Streamlit
216
+ .streamlit/secrets.toml
217
+
218
+ slice.py
app.py CHANGED
@@ -255,6 +255,18 @@ with gr.Blocks(title="Generalist-IDM Demo", css=css, theme=gr.themes.Soft()) as
255
  elem_id="output_visualizer"
256
  )
257
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  process_btn.click(
259
  fn=process_video,
260
  inputs=[video_input, duration_slider],
 
255
  elem_id="output_visualizer"
256
  )
257
 
258
+ # Examples with Brotato and CSGO2
259
+ gr.Examples(
260
+ examples=[
261
+ ["Brotato.mkv", 5],
262
+ ["CSGO2.mkv", 5],
263
+ ],
264
+ inputs=[video_input, duration_slider],
265
+ outputs=[output_files, viz_link, visualizer_frame],
266
+ fn=process_video,
267
+ cache_examples=False,
268
+ )
269
+
270
  process_btn.click(
271
  fn=process_video,
272
  inputs=[video_input, duration_slider],