Spaces:
Runtime error
Runtime error
Wilson commited on
Commit ·
5897420
1
Parent(s): 754a0f7
better gradio launch
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ def model_call(prompt, image):
|
|
| 8 |
image.save(temp_file.name)
|
| 9 |
return client.image_to_image(temp_file.name, prompt=prompt)
|
| 10 |
|
| 11 |
-
iface = gr.
|
| 12 |
fn=model_call,
|
| 13 |
inputs=[gr.inputs.Textbox(label="How to transform this image?"), gr.inputs.Image(type="pil")],
|
| 14 |
outputs=gr.outputs.Image(type="pil")
|
| 15 |
-
)
|
|
|
|
| 8 |
image.save(temp_file.name)
|
| 9 |
return client.image_to_image(temp_file.name, prompt=prompt)
|
| 10 |
|
| 11 |
+
iface = gr.Interface(
|
| 12 |
fn=model_call,
|
| 13 |
inputs=[gr.inputs.Textbox(label="How to transform this image?"), gr.inputs.Image(type="pil")],
|
| 14 |
outputs=gr.outputs.Image(type="pil")
|
| 15 |
+
).launch(debug=True)
|