multimodalart HF Staff commited on
Commit
66818c2
·
verified ·
1 Parent(s): 097eb9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -62,18 +62,18 @@ with gr.Blocks(css=css) as demo:
62
  gr.Markdown(f"""# FLUX.1 Kontext [dev]
63
  """)
64
 
65
- input_image = gr.Image(label="Upload the image for editing", type="pil")
66
  with gr.Row():
67
  with gr.Column():
68
- prompt = gr.Text(
69
- label="Prompt",
70
- show_label=False,
71
- max_lines=1,
72
- placeholder="Enter your prompt for editing (e.g., 'Remove glasses', 'Add a hat')",
73
- container=False,
74
- )
75
-
76
- run_button = gr.Button("Run", scale=0)
 
77
  with gr.Accordion("Advanced Settings", open=False):
78
 
79
  seed = gr.Slider(
@@ -95,8 +95,8 @@ with gr.Blocks(css=css) as demo:
95
  )
96
 
97
  with gr.Column():
98
- result = gr.Image(label="Result", show_label=False)
99
- reuse_button = gr.Button("Reuse this image", scale=0)
100
 
101
 
102
 
 
62
  gr.Markdown(f"""# FLUX.1 Kontext [dev]
63
  """)
64
 
 
65
  with gr.Row():
66
  with gr.Column():
67
+ input_image = gr.Image(label="Upload the image for editing", type="pil")
68
+ with gr.Row():
69
+ prompt = gr.Text(
70
+ label="Prompt",
71
+ show_label=False,
72
+ max_lines=1,
73
+ placeholder="Enter your prompt for editing (e.g., 'Remove glasses', 'Add a hat')",
74
+ container=False,
75
+ )
76
+ run_button = gr.Button("Run", scale=0)
77
  with gr.Accordion("Advanced Settings", open=False):
78
 
79
  seed = gr.Slider(
 
95
  )
96
 
97
  with gr.Column():
98
+ result = gr.Image(label="Result", show_label=False, interactive=False)
99
+ reuse_button = gr.Button("Reuse this image")
100
 
101
 
102