Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 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)
|