ihsanvp commited on
Commit
254aacb
1 Parent(s): d3bfe8d

fix: pyav not installed

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +0 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import torchvision
5
  def generate(prompt: str):
6
  video = torch.rand(240, 512, 512, 3)
7
  torchvision.io.write_video(video, "video.mp4", fps=24)
 
8
 
9
  gr.Interface(
10
  fn=generate,
 
5
  def generate(prompt: str):
6
  video = torch.rand(240, 512, 512, 3)
7
  torchvision.io.write_video(video, "video.mp4", fps=24)
8
+ return "video.mp4"
9
 
10
  gr.Interface(
11
  fn=generate,
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ