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