fffiloni commited on
Commit
1742a42
·
verified ·
1 Parent(s): 9013c8f

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +22 -1
gradio_app.py CHANGED
@@ -9,4 +9,25 @@ client = InferenceClient(
9
  image = client.text_to_image(
10
  "Astronaut riding a horse",
11
  model="multimodalart/isometric-skeumorphic-3d-bnb",
12
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  image = client.text_to_image(
10
  "Astronaut riding a horse",
11
  model="multimodalart/isometric-skeumorphic-3d-bnb",
12
+ )
13
+
14
+ from gradio_client import Client, handle_file
15
+
16
+ client = Client("Lightricks/ltx-video-distilled")
17
+ result = client.predict(
18
+ prompt="The creature from the image starts to move",
19
+ negative_prompt="worst quality, inconsistent motion, blurry, jittery, distorted",
20
+ input_image_filepath=handle_file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
21
+ input_video_filepath="Hello!!",
22
+ height_ui=512,
23
+ width_ui=704,
24
+ mode="image-to-video",
25
+ duration_ui=2,
26
+ ui_frames_to_use=9,
27
+ seed_ui=42,
28
+ randomize_seed=True,
29
+ ui_guidance_scale=1,
30
+ improve_texture_flag=True,
31
+ api_name="/image_to_video"
32
+ )
33
+ print(result)