zenafey commited on
Commit
4afe17e
1 Parent(s): 8c2db72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ class APIClient:
22
  r = requests.post(url, headers=self.headers, json=json)
23
  r.raise_for_status()
24
 
25
- return Image.open(BytesIO(r.content)).convert("RGBA")
26
 
27
  def job(self, config):
28
  body = {"type": "inference.flux.dev.txt2img.v1", "config": config}
@@ -84,7 +84,7 @@ with gr.Blocks(css=css) as demo:
84
 
85
  run_button = gr.Button("Run", scale=0)
86
 
87
- result = gr.Image(label="Result", show_label=False)
88
 
89
  with gr.Accordion("Advanced Settings", open=False):
90
 
 
22
  r = requests.post(url, headers=self.headers, json=json)
23
  r.raise_for_status()
24
 
25
+ return Image.open(BytesIO(r.content)).convert("RGB")
26
 
27
  def job(self, config):
28
  body = {"type": "inference.flux.dev.txt2img.v1", "config": config}
 
84
 
85
  run_button = gr.Button("Run", scale=0)
86
 
87
+ result = gr.Image(label="Result", show_label=False, format="jpeg")
88
 
89
  with gr.Accordion("Advanced Settings", open=False):
90