breezywaves commited on
Commit
e24bc0c
·
verified ·
1 Parent(s): 10c7e34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -17,8 +17,10 @@ model_name = "Lightricks/LTX-Video"
17
 
18
  # Create a Gradio interface that connects to the model
19
  def generate_video(input_text):
20
- # If your model expects text and outputs video, process here
21
- model = gr.Interface.load(model_name, provider="huggingface")
 
 
22
  output = model.predict(input_text)
23
  return output
24
 
@@ -27,3 +29,4 @@ interface = gr.Interface(fn=generate_video, inputs="text", outputs="video")
27
 
28
  # Launch the app
29
  interface.launch()
 
 
17
 
18
  # Create a Gradio interface that connects to the model
19
  def generate_video(input_text):
20
+ # Load the model from Hugging Face
21
+ model = gr.Interface.load(model_name)
22
+
23
+ # Make predictions or generate output from the model
24
  output = model.predict(input_text)
25
  return output
26
 
 
29
 
30
  # Launch the app
31
  interface.launch()
32
+