KingNish commited on
Commit
cf80990
1 Parent(s): 543cd64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -14
app.py CHANGED
@@ -151,40 +151,33 @@ footer {
151
  }
152
  '''
153
 
154
- def get_example():
155
- case = [
156
  [
157
  "Image Generation",
158
- None,
159
  "A Super Car",
160
-
161
  ],
162
  [
163
  "Image Editing",
164
- "./supercar.png",
165
  "make it red",
166
-
167
  ],
168
  [
169
  "Image Editing",
170
- "./red_car.png",
171
  "add some snow",
172
-
173
  ],
174
  [
175
  "Image Generation",
 
176
  None,
177
- "Kids going o school, Anime style",
178
-
179
  ],
180
  [
181
  "Image Generation",
182
- None,
183
  "Beautiful Eiffel Tower at Night",
184
-
185
  ],
186
  ]
187
- return case
188
 
189
  with gr.Blocks(css=css) as demo:
190
  gr.Markdown("# Image Generator Pro")
@@ -213,7 +206,7 @@ with gr.Blocks(css=css) as demo:
213
  seed = gr.Number(value=1371, precision=0, label="Seed", interactive=True)
214
 
215
  gr.Examples(
216
- examples=get_example(),
217
  inputs=[type,input_image, instruction],
218
  fn=king,
219
  outputs=[input_image],
 
151
  }
152
  '''
153
 
154
+ examples=[
 
155
  [
156
  "Image Generation",
 
157
  "A Super Car",
158
+ None,
159
  ],
160
  [
161
  "Image Editing",
 
162
  "make it red",
163
+ "./supercar.png",
164
  ],
165
  [
166
  "Image Editing",
 
167
  "add some snow",
168
+ "./red_car.png",
169
  ],
170
  [
171
  "Image Generation",
172
+ "Ironman flying in front of Ststue of liberty",
173
  None,
 
 
174
  ],
175
  [
176
  "Image Generation",
 
177
  "Beautiful Eiffel Tower at Night",
178
+ None,
179
  ],
180
  ]
 
181
 
182
  with gr.Blocks(css=css) as demo:
183
  gr.Markdown("# Image Generator Pro")
 
206
  seed = gr.Number(value=1371, precision=0, label="Seed", interactive=True)
207
 
208
  gr.Examples(
209
+ examples=examples,
210
  inputs=[type,input_image, instruction],
211
  fn=king,
212
  outputs=[input_image],