ysharma HF Staff commited on
Commit
98417d5
·
1 Parent(s): 19cedfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -10
app.py CHANGED
@@ -50,15 +50,18 @@ with gr.Blocks() as demo:
50
  upload_image.upload(upload_file, upload_image, image_in, queue=False)
51
  image_submit.click(fn=image_to_video, inputs=[image_in, text_in], outputs=[video_out_1])
52
 
53
- gr.Examples([['example_images/sample2.png', 'A girl with yellow hair and black clothes stood in front of the camera'],
54
- ['example_images/sample1.png', 'A blonde girl in jeans'],],
55
- inputs=[image_in, text_in],
56
- outputs=[video_out_1],
57
- fn=image_to_video,
58
- cache_examples=True,
59
- examples_per_page=5,
60
- label='Examples',
61
- elem_id='examples_elem'
62
- )
 
 
63
 
 
64
  demo.queue(status_update_rate=1, api_open=False).launch(share=False, show_error=True)
 
50
  upload_image.upload(upload_file, upload_image, image_in, queue=False)
51
  image_submit.click(fn=image_to_video, inputs=[image_in, text_in], outputs=[video_out_1])
52
 
53
+ with gr.Row(variant="panel"):
54
+ gr.Examples(examples=[
55
+ #['example_images/sample2.png', 'A girl with yellow hair and black clothes stood in front of the camera'],
56
+ ['sample13.png', 'A girl in hat and glasses']
57
+ ],
58
+ inputs=[image_in, text_in],
59
+ outputs=[video_out_1],
60
+ fn=image_to_video,
61
+ cache_examples=True,
62
+ examples_per_page=5,
63
+ label='Examples',
64
+ )
65
 
66
+
67
  demo.queue(status_update_rate=1, api_open=False).launch(share=False, show_error=True)