Kvikontent commited on
Commit
b8de6eb
Β·
verified Β·
1 Parent(s): 3c33543

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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")