Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -102,23 +102,24 @@ with demo:
|
|
102 |
gr.Markdown("3. After generating some images, hit the 'Generate Video' button to create a short video by interpolating the previously generated visuals!")
|
103 |
button_gen_video = gr.Button("Generate Video")
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
# Right column (outputs)
|
106 |
with gr.Column():
|
107 |
output_generated_story = gr.Textbox(label="Generated Story")
|
108 |
output_gallery = gr.Gallery(label="Generated Story Images")
|
109 |
output_interpolation = gr.Video(label="Generated Video")
|
110 |
|
111 |
-
with gr.Row():
|
112 |
-
gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=gradio-blocks_story_and_video_generation)")
|
113 |
-
with gr.Row():
|
114 |
-
gr.Markdown("Models Used:")
|
115 |
-
with gr.Row():
|
116 |
-
gr.Markdown("Story Generation: [GPT-J](https://huggingface.co/pranavpsv/gpt2-genre-story-generator)")
|
117 |
-
with gr.Row():
|
118 |
-
gr.Markdown("Image Generation Conditioned on Text: [Latent Diffusion](https://huggingface.co/spaces/multimodalart/latentdiffusion) | [Github Repo](https://github.com/CompVis/latent-diffusion)")
|
119 |
-
with gr.Row():
|
120 |
-
gr.Markdown("Interpolations: [Frame Interpolation](https://huggingface.co/spaces/akhaliq/frame-interpolation) | [Github Repo](https://github.com/google-research/frame-interpolation)")
|
121 |
-
|
122 |
# Bind functions to buttons
|
123 |
button_gen_story.click(fn=generate_story, inputs=[input_story_type , input_start_text], outputs=output_generated_story)
|
124 |
button_gen_images.click(fn=generate_images, inputs=output_generated_story, outputs=output_gallery)
|
|
|
102 |
gr.Markdown("3. After generating some images, hit the 'Generate Video' button to create a short video by interpolating the previously generated visuals!")
|
103 |
button_gen_video = gr.Button("Generate Video")
|
104 |
|
105 |
+
# Rows of references
|
106 |
+
with gr.Row():
|
107 |
+
gr.Markdown("*Models Used*")
|
108 |
+
with gr.Row():
|
109 |
+
gr.Markdown("Story Generation: [GPT-J](https://huggingface.co/pranavpsv/gpt2-genre-story-generator)")
|
110 |
+
with gr.Row():
|
111 |
+
gr.Markdown("Image Generation Conditioned on Text: [Latent Diffusion](https://huggingface.co/spaces/multimodalart/latentdiffusion) | [Github Repo](https://github.com/CompVis/latent-diffusion)")
|
112 |
+
with gr.Row():
|
113 |
+
gr.Markdown("Interpolations: [Frame Interpolation](https://huggingface.co/spaces/akhaliq/frame-interpolation) | [Github Repo](https://github.com/google-research/frame-interpolation)")
|
114 |
+
with gr.Row():
|
115 |
+
gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=gradio-blocks_story_and_video_generation)")
|
116 |
+
|
117 |
# Right column (outputs)
|
118 |
with gr.Column():
|
119 |
output_generated_story = gr.Textbox(label="Generated Story")
|
120 |
output_gallery = gr.Gallery(label="Generated Story Images")
|
121 |
output_interpolation = gr.Video(label="Generated Video")
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
# Bind functions to buttons
|
124 |
button_gen_story.click(fn=generate_story, inputs=[input_story_type , input_start_text], outputs=output_generated_story)
|
125 |
button_gen_images.click(fn=generate_images, inputs=output_generated_story, outputs=output_gallery)
|