Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,22 +1,10 @@
|
|
1 |
-
import
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
#
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
pipe.to("cpu")
|
12 |
-
|
13 |
-
|
14 |
-
prompt = "A man with short gray hair plays a red electric guitar."
|
15 |
-
image = load_image(
|
16 |
-
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
|
17 |
-
)
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
output = pipe(image=image, prompt=prompt).frames[0]
|
22 |
-
export_to_video(output, "output.mp4")
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
with gr.Blocks(fill_height=True) as demo:
|
4 |
+
with gr.Sidebar():
|
5 |
+
gr.Markdown("# Inference Provider")
|
6 |
+
gr.Markdown("This Space showcases the Wan-AI/Wan2.2-I2V-A14B model, served by the fal-ai API. Sign in with your Hugging Face account to use this API.")
|
7 |
+
button = gr.LoginButton("Sign in")
|
8 |
+
gr.load("models/Wan-AI/Wan2.2-I2V-A14B", accept_token=button, provider="fal-ai")
|
9 |
+
|
10 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|