Nymbo commited on
Commit
eeb4bf1
·
verified ·
1 Parent(s): 349633f

Keep the /predict endpoint name; PNG output

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -146,7 +146,8 @@ demo = gr.Interface(
146
  gr.Image(type="pil", label="Input"),
147
  gr.Text(label="Prompt")
148
  ],
149
- outputs=[gr.Image(type="pil", label="Ouput")],
 
150
  title=title,
151
  description=description,
152
  article=article,
 
146
  gr.Image(type="pil", label="Input"),
147
  gr.Text(label="Prompt")
148
  ],
149
+ outputs=[gr.Image(type="pil", label="Ouput", format="png")],
150
+ api_name="predict",
151
  title=title,
152
  description=description,
153
  article=article,