yiren98 commited on
Commit
2003365
·
1 Parent(s): 35cb2b8
Files changed (1) hide show
  1. gradio_app_asy.py +34 -34
gradio_app_asy.py CHANGED
@@ -254,40 +254,40 @@ with gr.Blocks() as demo:
254
  # Run Button
255
  run_button.click(fn=infer, inputs=[prompt, frame_selector, seed], outputs=[result_image])
256
 
257
- # gr.Markdown("### Examples")
258
- # examples = [
259
- # [
260
- # "sks14, 2*2 puzzle of 4 sub-images, step-by-step wood sculpture carving process", # prompt
261
- # "./gradio_examples/wood_sculpture.png",
262
- # "Wood Sculpture", # recraft_model
263
- # 12345 # seed
264
- # ],
265
- # [
266
- # "sks1, 3*3 puzzle of 9 sub-images, step-by-step lego model construction process", # prompt
267
- # "./gradio_examples/lego.png",
268
- # "LEGO", # recraft_model
269
- # 42 # seed
270
- # ],
271
- # [
272
- # "sks6, 3*3 puzzle of 9 sub-images, step-by-step portrait painting process", # prompt
273
- # "./gradio_examples/portrait.png",
274
- # "Portrait", # recraft_model
275
- # 999 # seed
276
- # ],
277
- # [
278
- # "sks10, 3*3 puzzle of 9 sub-images, step-by-step sketch painting process,", # prompt
279
- # "./gradio_examples/sketch.png",
280
- # "Sketch",
281
- # 2023
282
- # ]
283
- # ]
284
-
285
- # gr.Examples(
286
- # examples=examples,
287
- # inputs=[prompt, sample_image, recraft_model, seed],
288
- # outputs=[result_image],
289
- # cache_examples=False
290
- # )
291
 
292
  # Launch the Gradio app
293
  demo.launch()
 
254
  # Run Button
255
  run_button.click(fn=infer, inputs=[prompt, frame_selector, seed], outputs=[result_image])
256
 
257
+ gr.Markdown("### Examples")
258
+ examples = [
259
+ [
260
+ "9 frame",
261
+ "LEGO",
262
+ "sks1, 3*3 puzzle of 9 sub-images, step-by-step construction process of a LEGO model,<image-1> Lay down a gray plate as a road surface.<image-2> Position two red 2x4 bricks side by side to start forming a sports car’s chassis.<image-3> Attach black slope bricks at the front, shaping a sleek hood.<image-4> Insert transparent pieces at the front for headlights.<image-5> Clip on black wheel assemblies at each corner.<image-6> Add a windshield piece and a small black steering wheel inside.<image-7> Place smooth tiles on top to create a glossy roof.<image-8> Add side mirrors and a spoiler at the back.<image-9> Conclude by placing a minifigure driver behind the wheel, ready to race.",
263
+ 1855705978
264
+ ],
265
+ # [
266
+ # "sks1, 3*3 puzzle of 9 sub-images, step-by-step lego model construction process", # prompt
267
+ # "./gradio_examples/lego.png",
268
+ # "LEGO", # recraft_model
269
+ # 42 # seed
270
+ # ],
271
+ # [
272
+ # "sks6, 3*3 puzzle of 9 sub-images, step-by-step portrait painting process", # prompt
273
+ # "./gradio_examples/portrait.png",
274
+ # "Portrait", # recraft_model
275
+ # 999 # seed
276
+ # ],
277
+ # [
278
+ # "sks10, 3*3 puzzle of 9 sub-images, step-by-step sketch painting process,", # prompt
279
+ # "./gradio_examples/sketch.png",
280
+ # "Sketch",
281
+ # 2023
282
+ # ]
283
+ ]
284
+
285
+ gr.Examples(
286
+ examples=examples,
287
+ inputs=[frame_selector, domain_selector, prompt, seed],
288
+ outputs=[result_image],
289
+ cache_examples=False
290
+ )
291
 
292
  # Launch the Gradio app
293
  demo.launch()