Wilson commited on
Commit
5897420
·
1 Parent(s): 754a0f7

better gradio launch

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.launch(
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)