fffiloni commited on
Commit
1b0f507
·
verified ·
1 Parent(s): 314f998

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +5 -5
gradio_app.py CHANGED
@@ -1,11 +1,12 @@
1
  import gradio as gr
 
 
2
 
3
- def infer(text_prompt, action_prompt, login):
4
- from huggingface_hub import InferenceClient
5
 
6
  inf_client = InferenceClient(
7
- provider="fal-ai",
8
- api_key=login
9
  )
10
 
11
  # output is a PIL.Image object
@@ -23,7 +24,6 @@ def infer(text_prompt, action_prompt, login):
23
 
24
  print(f"✅ Image saved temporarily at: {temp_image_path}")
25
 
26
- from gradio_client import Client, handle_file
27
 
28
  gr_client = Client("Lightricks/ltx-video-distilled")
29
  result = gr_client.predict(
 
1
  import gradio as gr
2
+ from huggingface_hub import InferenceClient
3
+ from gradio_client import Client, handle_file
4
 
5
+
6
+ def infer(text_prompt, action_prompt):
7
 
8
  inf_client = InferenceClient(
9
+ provider="replicate",
 
10
  )
11
 
12
  # output is a PIL.Image object
 
24
 
25
  print(f"✅ Image saved temporarily at: {temp_image_path}")
26
 
 
27
 
28
  gr_client = Client("Lightricks/ltx-video-distilled")
29
  result = gr_client.predict(