jiuface commited on
Commit
6ee534d
·
verified ·
1 Parent(s): 72bb838

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -148,7 +148,7 @@ Image editing and manipulation model guidance-distilled from FLUX.1 Kontext [pro
148
  """)
149
  with gr.Row():
150
  with gr.Column():
151
- image_url = gr.Text(
152
  label="Orginal image url",
153
  show_label=True,
154
  max_lines=1,
@@ -156,7 +156,7 @@ Image editing and manipulation model guidance-distilled from FLUX.1 Kontext [pro
156
  container=False
157
  )
158
  with gr.Row():
159
- prompt = gr.Text(
160
  label="Prompt",
161
  show_label=False,
162
  max_lines=1,
@@ -196,17 +196,17 @@ Image editing and manipulation model guidance-distilled from FLUX.1 Kontext [pro
196
  with gr.Accordion("R2 Settings", open=False):
197
  upload_to_r2 = gr.Checkbox(label="Upload to R2", value=False)
198
  with gr.Row():
199
- account_id = gr.Textbox(label="Account Id", placeholder="Enter R2 account id")
200
- bucket = gr.Textbox(label="Bucket Name", placeholder="Enter R2 bucket name here")
201
 
202
  with gr.Row():
203
- access_key = gr.Textbox(label="Access Key", placeholder="Enter R2 access key here")
204
- secret_key = gr.Textbox(label="Secret Key", placeholder="Enter R2 secret key here")
205
 
206
 
207
  with gr.Column():
208
- generated_images = gr.Gallery(label="Result", show_label=True)
209
- output_json_component = gr.Code(label="JSON Result", language="json")
210
 
211
  run_button.click(
212
  fn = process,
 
148
  """)
149
  with gr.Row():
150
  with gr.Column():
151
+ image_url = gr.Textbox(
152
  label="Orginal image url",
153
  show_label=True,
154
  max_lines=1,
 
156
  container=False
157
  )
158
  with gr.Row():
159
+ prompt = gr.Textbox(
160
  label="Prompt",
161
  show_label=False,
162
  max_lines=1,
 
196
  with gr.Accordion("R2 Settings", open=False):
197
  upload_to_r2 = gr.Checkbox(label="Upload to R2", value=False)
198
  with gr.Row():
199
+ account_id = gr.Textbox(label="Account Id", placeholder="Enter R2 account id", value="")
200
+ bucket = gr.Textbox(label="Bucket Name", placeholder="Enter R2 bucket name here", value="")
201
 
202
  with gr.Row():
203
+ access_key = gr.Textbox(label="Access Key", placeholder="Enter R2 access key here", value="")
204
+ secret_key = gr.Textbox(label="Secret Key", placeholder="Enter R2 secret key here", value="")
205
 
206
 
207
  with gr.Column():
208
+ generated_images = gr.Gallery(label="Result", show_label=True, value=[])
209
+ output_json_component = gr.Code(label="JSON Result", language="json", value="{}")
210
 
211
  run_button.click(
212
  fn = process,