Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,15 +17,15 @@ def generate(prompt, num_inference_steps, num_frames):
|
|
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
|
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 **
|
25 |
-
π Space is running on
|
26 |
"""
|
27 |
-
num_inference_steps=gr.Slider(
|
28 |
-
num_frames=gr.Slider(8,
|
29 |
|
30 |
interface = gr.Interface(
|
31 |
generate,
|
|
|
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 a **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 **2-5 minutes**\n
|
25 |
+
π Space is running on CPU, if you want faster generation, duplicate space and choose ZeroGPU or a GPU or decrease Inference Steps.
|
26 |
"""
|
27 |
+
num_inference_steps=gr.Slider(2, 128, step=1, value=24, label="Num Inference Steps", info="More steps gives better quality. Less steps is faster.")
|
28 |
+
num_frames=gr.Slider(8, 2000, step=1, value=200, label="Num of Frames", info="It is duration of video")
|
29 |
|
30 |
interface = gr.Interface(
|
31 |
generate,
|