LiangbinXie commited on
Commit
c25fd7e
1 Parent(s): 0817ca0

update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -0
app.py CHANGED
@@ -296,4 +296,46 @@ with gr.Blocks(css='style.css') as demo:
296
 
297
  inps.extend([prompt, neg_prompt, scale, n_samples, seed, steps, resize_short_edge, cond_tau])
298
  submit.click(fn=run, inputs=inps, outputs=[output, cond])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  demo.queue().launch(debug=True, server_name='0.0.0.0')
 
296
 
297
  inps.extend([prompt, neg_prompt, scale, n_samples, seed, steps, resize_short_edge, cond_tau])
298
  submit.click(fn=run, inputs=inps, outputs=[output, cond])
299
+
300
+ ex = gr.Examples([
301
+ [
302
+ "Image",
303
+ "Nothing",
304
+ "Image",
305
+ "Nothing",
306
+ "Nothing",
307
+ "Nothing",
308
+ "https://user-images.githubusercontent.com/52127135/223114920-cae3e723-3683-424a-bebc-0875479f2409.jpg",
309
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
310
+ "https://user-images.githubusercontent.com/52127135/223114946-6ccc127f-cb58-443e-8677-805f5dbaf6f1.png",
311
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
312
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
313
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
314
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
315
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
316
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
317
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
318
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
319
+ "https://user-images.githubusercontent.com/52127135/223121793-20c2ac6a-5a4f-4ff8-88ea-6d007a7959dd.png",
320
+ 1,
321
+ 1,
322
+ 1,
323
+ 1,
324
+ 1,
325
+ 1,
326
+ "master sword",
327
+ "longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
328
+ 7.5,
329
+ 1,
330
+ 3000,
331
+ 50,
332
+ 512,
333
+ 1,
334
+ ],
335
+ ],
336
+ fn=run,
337
+ inputs=inps,
338
+ outputs=[output, cond],
339
+ cache_examples=True)
340
+
341
  demo.queue().launch(debug=True, server_name='0.0.0.0')