tombetthauser commited on
Commit
4f8e7f5
Β·
1 Parent(s): b88a1b2

Add dropdown styling and label

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -16,7 +16,7 @@ with init_empty_weights():
16
 
17
  DROPDOWNS = {
18
  "gustav": " by dan mumford and gustav klimt and john harris and jean delville and victo ngai and josan gonzalez",
19
- "hiyao": " by studio ghibli, by miyazaki, watercolor painting",
20
  "vinny": " painting by Vincent van Gogh",
21
  "danny": " drawn by a child",
22
  }
@@ -95,8 +95,12 @@ with gradio.Blocks(css="""
95
  .rounded-lg {
96
  border-radius: 0;
97
  }
 
 
 
 
98
  """) as demo:
99
- dropdown = gradio.Dropdown(["danny", "gustav", "hiyao", "vinny"])
100
  prompt = gradio.Textbox(label="image prompt...", elem_id="input-text")
101
  output = gradio.Image(elem_id="output-image")
102
  go_button = gradio.Button("draw it!", elem_id="go-button")
 
16
 
17
  DROPDOWNS = {
18
  "gustav": " by dan mumford and gustav klimt and john harris and jean delville and victo ngai and josan gonzalez",
19
+ "hayao": " by studio ghibli",
20
  "vinny": " painting by Vincent van Gogh",
21
  "danny": " drawn by a child",
22
  }
 
95
  .rounded-lg {
96
  border-radius: 0;
97
  }
98
+ .gr-padded {
99
+ padding: 0 0;
100
+ margin-bottom: 12.5px;
101
+ }
102
  """) as demo:
103
+ dropdown = gradio.Dropdown(["danny", "gustav", "hayao", "vinny"], label="choose style...")
104
  prompt = gradio.Textbox(label="image prompt...", elem_id="input-text")
105
  output = gradio.Image(elem_id="output-image")
106
  go_button = gradio.Button("draw it!", elem_id="go-button")