Spaces:
Running
on
Zero
Running
on
Zero
Kvikontent
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -13,15 +13,15 @@ pipe.enable_vae_slicing()
|
|
13 |
|
14 |
@spaces.GPU(duration=250)
|
15 |
def generate(prompt, num_inference_steps, num_frames):
|
16 |
-
video_frames = pipe(prompt, num_inference_steps, num_frames).frames[0]
|
17 |
video_path = export_to_video(video_frames, fps=10)
|
18 |
return video_path
|
19 |
|
20 |
prompt = gr.Textbox(label="Enter prompt to generate a video", info="Based on this prompt ai will generate a video")
|
21 |
description="""
|
22 |
-
π This is **unofficial** demo of Openai's Sora that haven't been released yet
|
23 |
-
β This space made using [ali-vilab/text-to-video-ms-1.7b](https://huggingface.co/ali-vilab/text-to-video-ms-1.7b)
|
24 |
-
β Estimated generation time is **150 seconds
|
25 |
π Space is running on ZeroGPU, if you want faster generation, duplicate space and choose faster GPU
|
26 |
"""
|
27 |
num_inference_steps=gr.Slider(8, 64, step=8, value=24, label="Num Inference Steps", info="More steps then better quality")
|
|
|
13 |
|
14 |
@spaces.GPU(duration=250)
|
15 |
def generate(prompt, num_inference_steps, num_frames):
|
16 |
+
video_frames = pipe(prompt, num_inference_steps=num_inference_steps, num_frames=num_frames).frames[0]
|
17 |
video_path = export_to_video(video_frames, fps=10)
|
18 |
return video_path
|
19 |
|
20 |
prompt = gr.Textbox(label="Enter prompt to generate a video", info="Based on this prompt ai will generate a video")
|
21 |
description="""
|
22 |
+
π This is **unofficial** demo of Openai's Sora that haven't been released yet.\n
|
23 |
+
β This space made using [ali-vilab/text-to-video-ms-1.7b](https://huggingface.co/ali-vilab/text-to-video-ms-1.7b)\n
|
24 |
+
β Estimated generation time is **150 seconds**\n
|
25 |
π Space is running on ZeroGPU, if you want faster generation, duplicate space and choose faster GPU
|
26 |
"""
|
27 |
num_inference_steps=gr.Slider(8, 64, step=8, value=24, label="Num Inference Steps", info="More steps then better quality")
|