besarismaili commited on
Commit
af9c298
·
1 Parent(s): 61a5400
Files changed (1) hide show
  1. app.py +2 -2
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.Image(value=file_path))
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.Image(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")
 
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")