Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
#
|
| 21 |
-
model = gr.Interface.load(model_name
|
|
|
|
|
|
|
| 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 |
+
|