Spaces:
Runtime error
Runtime error
File size: 1,906 Bytes
5784791 2897826 2a37fe9 77a546f f38b753 2a37fe9 cb84794 2a37fe9 77a546f f38b753 2a37fe9 f86d24b 2a37fe9 5784791 2a37fe9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
import gradio as gr
from video_diffusion.damo.damo_text2_video import DamoText2VideoGenerator
from video_diffusion.inpaint_zoom.zoom_in_app import StableDiffusionZoomIn
from video_diffusion.inpaint_zoom.zoom_out_app import StableDiffusionZoomOut
#from video_diffusion.stable_diffusion_video.stable_video_text2video import StableDiffusionText2VideoGenerator
#from video_diffusion.tuneavideo.tuneavideo_text2video import TunaVideoText2VideoGenerator
from video_diffusion.zero_shot.zero_shot_text2video import ZeroShotText2VideoGenerator
def diffusion_app():
app = gr.Blocks()
with app:
gr.HTML(
"""
<h1 style='text-align: center'>
Video Diffusion WebUI
</h1>
"""
)
gr.HTML(
"""
<h3 style='text-align: center'>
Follow me for more!
<a href='https://twitter.com/kadirnar_ai' target='_blank'>Twitter</a> | <a href='https://github.com/kadirnar' target='_blank'>Github</a> | <a href='https://www.linkedin.com/in/kadir-nar/' target='_blank'>Linkedin</a>
</h3>
"""
)
with gr.Row():
with gr.Column():
#with gr.Tab("Stable Diffusion Video"):
#StableDiffusionText2VideoGenerator.app()
#with gr.Tab("Tune-a-Video"):
#TunaVideoText2VideoGenerator.app()
with gr.Tab("Stable Infinite Zoom"):
with gr.Tab("Zoom In"):
StableDiffusionZoomIn.app()
with gr.Tab("Zoom Out"):
StableDiffusionZoomOut.app()
with gr.Tab("Damo Text2Video"):
DamoText2VideoGenerator.app()
with gr.Tab("Zero Shot Text2Video"):
ZeroShotText2VideoGenerator.app()
app.launch(debug=True)
if __name__ == "__main__":
diffusion_app()
|