Spaces:
Runtime error
Runtime error
Baraaqasem
commited on
Commit
•
b3bd3f4
1
Parent(s):
9931e6f
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,6 @@
|
|
1 |
-
import
|
2 |
-
from g4f.client import Client
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
response = await client.images.async_generate(
|
8 |
-
prompt="a white siamese cat",
|
9 |
-
model="flux"
|
10 |
-
)
|
11 |
-
|
12 |
-
image_url = response.data[0].url
|
13 |
-
print(f"Generated image URL: {image_url}")
|
14 |
|
15 |
-
|
|
|
1 |
+
import videogen_hub
|
|
|
2 |
|
3 |
+
model = videogen_hub.load('VideoCrafter2')
|
4 |
+
video = model.infer_one_video(prompt="A child excitedly swings on a rusty swing set, laughter filling the air.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
+
# Here video is a torch tensor of shape torch.Size([16, 3, 320, 512])
|