Spaces:
Runtime error
Runtime error
Commit
·
f23c041
1
Parent(s):
cdd568a
app.py
CHANGED
@@ -56,7 +56,7 @@ def anim(f_promt, s_promt, stability_key):
|
|
56 |
file_path = os.path.join(output_dir, f"frame_{idx:05d}.png")
|
57 |
frame.save(file_path)
|
58 |
print("Created frame at:"+file_path)
|
59 |
-
yield file_path
|
60 |
|
61 |
with gr.Blocks() as demo:
|
62 |
gr.Markdown("Stability Animation")
|
@@ -64,7 +64,7 @@ with gr.Blocks() as demo:
|
|
64 |
s_promt = gr.Textbox(label="Second Prompt", value="a photo of a cute dog")
|
65 |
stability_key = gr.Textbox(label="Stability Key", value="")
|
66 |
|
67 |
-
outimg = gr.
|
68 |
btn = gr.Button('Anim')
|
69 |
|
70 |
btn.click(fn=anim, inputs=[f_promt, s_promt, stability_key], outputs=[outimg],api_name="AnimAPI")
|
|
|
56 |
file_path = os.path.join(output_dir, f"frame_{idx:05d}.png")
|
57 |
frame.save(file_path)
|
58 |
print("Created frame at:"+file_path)
|
59 |
+
yield gr.Files(value=file_path)
|
60 |
|
61 |
with gr.Blocks() as demo:
|
62 |
gr.Markdown("Stability Animation")
|
|
|
64 |
s_promt = gr.Textbox(label="Second Prompt", value="a photo of a cute dog")
|
65 |
stability_key = gr.Textbox(label="Stability Key", value="")
|
66 |
|
67 |
+
outimg = gr.File(label="Generated Files")
|
68 |
btn = gr.Button('Anim')
|
69 |
|
70 |
btn.click(fn=anim, inputs=[f_promt, s_promt, stability_key], outputs=[outimg],api_name="AnimAPI")
|