MihaiHuggingFace commited on
Commit
0136c4c
Β·
verified Β·
1 Parent(s): b5f06b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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 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, 128, step=1, value=24, label="Num Inference Steps", info="More steps then better quality")
28
- num_frames=gr.Slider(8, 1000, step=1, value=200, label="Num of Frames", info="It is duration of video")
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,