ihsanvp commited on
Commit
2c1f0c3
1 Parent(s): 5fe36c5
Files changed (2) hide show
  1. .gitignore +2 -0
  2. app.py +13 -0
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .env
2
+ __pycache__/
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import torch
3
+ import torchvision
4
+
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,
11
+ inputs="text",
12
+ outputs=gr.Video()
13
+ )