LPDoctor commited on
Commit
80cc71e
1 Parent(s): d8bcc63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -65,7 +65,8 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
65
  return seed
66
 
67
  def get_style_lists():
68
- gr.update(visible=True)
 
69
 
70
 
71
  # def remove_tips():
@@ -394,8 +395,8 @@ with gr.Blocks(css=css) as demo:
394
 
395
  with gr.Column():
396
  output_image = gr.Image(label="Generated Image")
 
397
  # style_lists = gr.Dataframe(value=np.array(STYLE_NAMES, dtype=np.str_), type="numpy", row_count=1, label="style templates list", visible=False)
398
- style_lists = gr.List(value=[[x] for x in STYLE_NAMES], label="style templates list", visible=False)
399
  # usage_tips = gr.Markdown(label="Usage tips of InstantID", value=tips, visible=False)
400
 
401
  submit.click(
 
65
  return seed
66
 
67
  def get_style_lists():
68
+ gr.update(visible=True)
69
+ return [[x] for x in STYLE_NAMES]
70
 
71
 
72
  # def remove_tips():
 
395
 
396
  with gr.Column():
397
  output_image = gr.Image(label="Generated Image")
398
+ style_lists = gr.List(label="style templates list", header=None, visible=False)
399
  # style_lists = gr.Dataframe(value=np.array(STYLE_NAMES, dtype=np.str_), type="numpy", row_count=1, label="style templates list", visible=False)
 
400
  # usage_tips = gr.Markdown(label="Usage tips of InstantID", value=tips, visible=False)
401
 
402
  submit.click(