Adapter commited on
Commit
9f18fac
β€’
1 Parent(s): c059401

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -210,12 +210,20 @@ with gr.Blocks(css='style.css') as demo:
210
  for cond_name in supported_cond:
211
  with gr.Box():
212
  with gr.Column():
213
- btn1 = gr.Radio(
214
- choices=["Image", cond_name, "Nothing"],
 
215
  label=f"Input type for {cond_name}",
216
  interactive=True,
217
  value="Nothing",
218
  )
 
 
 
 
 
 
 
219
  im1 = gr.Image(source='upload', label="Image", interactive=True, visible=False, type="numpy")
220
  im2 = gr.Image(source='upload', label=cond_name, interactive=True, visible=False, type="numpy")
221
  cond_weight = gr.Slider(
 
210
  for cond_name in supported_cond:
211
  with gr.Box():
212
  with gr.Column():
213
+ if cond_name == 'style':
214
+ btn1 = gr.Radio(
215
+ choices=["Image", "Nothing"],
216
  label=f"Input type for {cond_name}",
217
  interactive=True,
218
  value="Nothing",
219
  )
220
+ else:
221
+ btn1 = gr.Radio(
222
+ choices=["Image", cond_name, "Nothing"],
223
+ label=f"Input type for {cond_name}",
224
+ interactive=True,
225
+ value="Nothing",
226
+ )
227
  im1 = gr.Image(source='upload', label="Image", interactive=True, visible=False, type="numpy")
228
  im2 = gr.Image(source='upload', label=cond_name, interactive=True, visible=False, type="numpy")
229
  cond_weight = gr.Slider(