israelweiss commited on
Commit
4951f1d
·
1 Parent(s): 62aa379

description update

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -149,7 +149,7 @@ with image_blocks as demo:
149
  - For best results in reference by image: make sure the foreground in the image is already located in the wanted position and scale, relative to the elements in the reference image.<br>
150
  </p>
151
  ''')
152
- with gr.Tab(label="By prompt", id="tab_prompt"):
153
 
154
  with gr.Row():
155
  with gr.Column():
@@ -157,7 +157,7 @@ with image_blocks as demo:
157
  # brush=gr.Brush(colors=["#000000"], color_mode="fixed"),
158
  # )
159
  image = gr.Image(type="pil", label="Input")
160
- prompt = gr.Textbox(label="Prompt", placeholder="Enter your prompt here...")
161
  with gr.Row(elem_id="prompt-container", equal_height=True):
162
  with gr.Column():
163
  btn = gr.Button("Replace Background!", elem_id="run_button")
@@ -178,9 +178,6 @@ with image_blocks as demo:
178
 
179
  with gr.Row():
180
  with gr.Column():
181
- # image = gr.ImageEditor(sources=["upload"], layers=False, transforms=[],
182
- # brush=gr.Brush(colors=["#000000"], color_mode="fixed"),
183
- # )
184
  image = gr.Image(type="pil", label="Input")
185
  ref_image = gr.Image(type="pil", label="Reference Image")
186
  with gr.Row(elem_id="prompt-container", equal_height=True):
 
149
  - For best results in reference by image: make sure the foreground in the image is already located in the wanted position and scale, relative to the elements in the reference image.<br>
150
  </p>
151
  ''')
152
+ with gr.Tab(label="By scene description", id="tab_prompt"):
153
 
154
  with gr.Row():
155
  with gr.Column():
 
157
  # brush=gr.Brush(colors=["#000000"], color_mode="fixed"),
158
  # )
159
  image = gr.Image(type="pil", label="Input")
160
+ prompt = gr.Textbox(label="scene description", placeholder="Enter your scene description here...")
161
  with gr.Row(elem_id="prompt-container", equal_height=True):
162
  with gr.Column():
163
  btn = gr.Button("Replace Background!", elem_id="run_button")
 
178
 
179
  with gr.Row():
180
  with gr.Column():
 
 
 
181
  image = gr.Image(type="pil", label="Input")
182
  ref_image = gr.Image(type="pil", label="Reference Image")
183
  with gr.Row(elem_id="prompt-container", equal_height=True):