multimodalart HF staff commited on
Commit
62ccae8
1 Parent(s): 23dbbde

Add examples by default

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -19,19 +19,19 @@ def predict_video(image,find,transform):
19
  return("giraffe_hairy_colorful_mane.mp4")
20
 
21
  #Image inputs
22
- image_editing = gr.Image(label="Input image",interactive=False)
23
- prompt_find = gr.Textbox(label="What to find on the image", interactive=False)
24
- prompt_transform = gr.Textbox(label="What to turn the image into", interactive=False)
25
- image_out = gr.outputs.Image()
26
- results_image = ['cake_oreo.png',"cake_ice.png","cake_brioche.png", "cake_spinach.png"]
27
  examples_image=[['cake.jpg','cake','oreo cake'], ['cake.jpg','cake','ice'], ['cake.jpg','cake','brioche'], ['cake.jpg','cake','spinach moss cake']]
28
 
29
  #Video inputs
30
- video_editing = gr.Video(label="Input video", interactive=False)
31
- prompt_find_video = gr.Textbox(label="What to find on the image", interactive=False)
32
- prompt_transform_video = gr.Textbox(label="What to turn the image into", interactive=False)
33
- video_out = gr.outputs.Video()
34
- results_video = ['cake_oreo.png',"cake_ice.png","cake_brioche.png", "cake_spinach.png"]
35
  examples_video=[['giraffe.mp4','giraffe','stained glass giraffe'], ['giraffe.mp4','giraffe','giraffe with a neck warmer'], ['giraffe.mp4','giraffe','giraffe with a hairy colorful mane']]
36
 
37
  with gr.Blocks() as demo:
19
  return("giraffe_hairy_colorful_mane.mp4")
20
 
21
  #Image inputs
22
+ image_editing = gr.Image(label="Input image",interactive=False, value="cake.jpg")
23
+ prompt_find = gr.Textbox(label="What to find on the image", interactive=False, value="cake")
24
+ prompt_transform = gr.Textbox(label="What to turn the image into", interactive=False, value="oreo cake")
25
+ image_out = gr.Image(value="cake_oreo.png")
26
+ #results_image = ['cake_oreo.png',"cake_ice.png","cake_brioche.png", "cake_spinach.png"]
27
  examples_image=[['cake.jpg','cake','oreo cake'], ['cake.jpg','cake','ice'], ['cake.jpg','cake','brioche'], ['cake.jpg','cake','spinach moss cake']]
28
 
29
  #Video inputs
30
+ video_editing = gr.Video(label="Input video", interactive=False, value="giraffe.mp4")
31
+ prompt_find_video = gr.Textbox(label="What to find on the video", interactive=False, value="giraffe")
32
+ prompt_transform_video = gr.Textbox(label="What to turn the video into", interactive=False, value="giraffe with a neck warmer")
33
+ video_out = gr.Video(value="giraffe_neck_warmer.mp4")
34
+ #results_video = ['cake_oreo.png',"cake_ice.png","cake_brioche.png", "cake_spinach.png"]
35
  examples_video=[['giraffe.mp4','giraffe','stained glass giraffe'], ['giraffe.mp4','giraffe','giraffe with a neck warmer'], ['giraffe.mp4','giraffe','giraffe with a hairy colorful mane']]
36
 
37
  with gr.Blocks() as demo: