multimodalart HF Staff linoyts HF Staff commited on
Commit
1b3a9ec
·
unverified ·
1 Parent(s): 4e257f3

add examples (#1)

Browse files

- add examples (72eb4116ab4d255d03c99f4c904ec0401b17445e)
- Update app.py (bd170666e48603930e7d2288a1ef2780ddb9f619)


Co-authored-by: Linoy Tsaban <linoyts@users.noreply.huggingface.co>

Files changed (3) hide show
  1. .gitattributes +1 -0
  2. app.py +12 -0
  3. examples/man_walking.mp4 +3 -0
.gitattributes CHANGED
@@ -33,5 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
36
  examples/neon.mp4 filter=lfs diff=lfs merge=lfs -text
37
  examples/painter.mp4 filter=lfs diff=lfs merge=lfs -text
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ examples/man_walking.mp4 filter=lfs diff=lfs merge=lfs -text
37
  examples/neon.mp4 filter=lfs diff=lfs merge=lfs -text
38
  examples/painter.mp4 filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -212,6 +212,18 @@ with gr.Blocks(title="Lucy Edit - Video Editing with Text", css=css) as demo:
212
 
213
  with gr.Column(scale=1):
214
  video_output = gr.Video(label="Edited Video")
 
 
 
 
 
 
 
 
 
 
 
 
215
 
216
  # Event handlers
217
  generate_btn.click(
 
212
 
213
  with gr.Column(scale=1):
214
  video_output = gr.Video(label="Edited Video")
215
+
216
+ gr.Examples(
217
+ examples=[
218
+ ["examples/man_walking.mp4", "make the man into an alien"],
219
+ ["examples/leopard.mp4", "make the leopard into a lion"],
220
+ ["examples/woman.mp4", "make the woman's coat blue"],
221
+ ],
222
+ inputs=[video_path, prompt],
223
+ outputs=video_output,
224
+ fn=process_video,
225
+ cache_examples="lazy",
226
+ )
227
 
228
  # Event handlers
229
  generate_btn.click(
examples/man_walking.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a19fede8433fc08ffd9af62fb3594706d3db75e634a35e764ad3b66865c8b38a
3
+ size 16581071