Dekonstruktio commited on
Commit
e82538a
·
verified ·
1 Parent(s): 1ea5f5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -95,12 +95,12 @@ def generate(
95
 
96
 
97
  examples = [
98
- "neon holography crystal cat",
99
- "a cat eating a piece of cheese",
100
- "an astronaut riding a horse in space",
101
- "a cartoon of a boy playing with a tiger",
102
- "a cute robot artist painting on an easel, concept art",
103
- "a close up of a woman wearing a transparent, prismatic, elaborate nemeses headdress, over the should pose, brown skin-tone"
104
  ]
105
 
106
  css = '''
@@ -120,18 +120,18 @@ with gr.Blocks(css=css) as demo:
120
  label="Prompt",
121
  show_label=False,
122
  max_lines=1,
123
- placeholder="Enter your prompt",
124
  container=False,
125
  )
126
  run_button = gr.Button("Run", scale=0)
127
- result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=False)
128
  with gr.Accordion("Advanced options", open=True):
129
  with gr.Row():
130
- use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
131
  negative_prompt = gr.Text(
132
  label="Negative prompt",
133
  max_lines=1,
134
- placeholder="Enter a negative prompt",
135
  visible=True,
136
  )
137
  seed = gr.Slider(
@@ -160,10 +160,10 @@ with gr.Blocks(css=css) as demo:
160
  with gr.Row():
161
  guidance_scale = gr.Slider(
162
  label="Guidance Scale",
163
- minimum=0.1,
164
  maximum=20,
165
- step=0.1,
166
- value=3.0,
167
  )
168
 
169
  gr.Examples(
 
95
 
96
 
97
  examples = [
98
+ " ",
99
+ " ",
100
+ " ",
101
+ " ",
102
+ " ",
103
+ " "
104
  ]
105
 
106
  css = '''
 
120
  label="Prompt",
121
  show_label=False,
122
  max_lines=1,
123
+ placeholder=" ",
124
  container=False,
125
  )
126
  run_button = gr.Button("Run", scale=0)
127
+ result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=True)
128
  with gr.Accordion("Advanced options", open=True):
129
  with gr.Row():
130
+ use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
131
  negative_prompt = gr.Text(
132
  label="Negative prompt",
133
  max_lines=1,
134
+ placeholder=" ",
135
  visible=True,
136
  )
137
  seed = gr.Slider(
 
160
  with gr.Row():
161
  guidance_scale = gr.Slider(
162
  label="Guidance Scale",
163
+ minimum=1,
164
  maximum=20,
165
+ step=1,
166
+ value=3,
167
  )
168
 
169
  gr.Examples(