Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def generate_video(prompt, negative_prompt="", height=720, width=1280, num_frame
|
|
37 |
|
38 |
return output_path # Gradio returns this as downloadable file/video
|
39 |
|
40 |
-
# Gradio Interface
|
41 |
iface = gr.Interface(
|
42 |
fn=generate_video,
|
43 |
inputs=[
|
@@ -50,7 +50,8 @@ iface = gr.Interface(
|
|
50 |
],
|
51 |
outputs=gr.File(label="Generated Video"),
|
52 |
title="Wan2.1 Video Generator",
|
53 |
-
description="Generate realistic videos from text prompts using the Wan2.1 T2V model."
|
|
|
54 |
)
|
55 |
|
56 |
-
iface.launch()
|
|
|
37 |
|
38 |
return output_path # Gradio returns this as downloadable file/video
|
39 |
|
40 |
+
# Gradio Interface with API support
|
41 |
iface = gr.Interface(
|
42 |
fn=generate_video,
|
43 |
inputs=[
|
|
|
50 |
],
|
51 |
outputs=gr.File(label="Generated Video"),
|
52 |
title="Wan2.1 Video Generator",
|
53 |
+
description="Generate realistic videos from text prompts using the Wan2.1 T2V model.",
|
54 |
+
api=True # This enables the API
|
55 |
)
|
56 |
|
57 |
+
iface.launch(share=True) # `share=True` will allow others to access your app via a public link
|