Spaces:
Runtime error
Runtime error
Vivien Chappelier
commited on
Commit
Β·
ed6eb7f
1
Parent(s):
812de95
fix name
Browse files
app.py
CHANGED
|
@@ -7,11 +7,11 @@ pipe.compile()
|
|
| 7 |
|
| 8 |
prompt = "sailing ship in storm by Rembrandt"
|
| 9 |
|
| 10 |
-
def
|
| 11 |
output = pipe(prompt, num_inference_steps=50, output_type="pil")
|
| 12 |
output.images[0].save("result.png")
|
| 13 |
return output.images[0]
|
| 14 |
|
| 15 |
-
iface = gr.Interface(fn=
|
| 16 |
iface.launch()
|
| 17 |
|
|
|
|
| 7 |
|
| 8 |
prompt = "sailing ship in storm by Rembrandt"
|
| 9 |
|
| 10 |
+
def generate(name):
|
| 11 |
output = pipe(prompt, num_inference_steps=50, output_type="pil")
|
| 12 |
output.images[0].save("result.png")
|
| 13 |
return output.images[0]
|
| 14 |
|
| 15 |
+
iface = gr.Interface(fn=generate, inputs=[gr.Textbox(label="Prompt", value=prompt)], outputs=[gr.Image(type="pil")])
|
| 16 |
iface.launch()
|
| 17 |
|