Spaces:
Runtime error
Runtime error
Commit ·
cc910da
1
Parent(s): 4c5854e
Update app.py
Browse filesModify examples list to include other inputs
136 unmodified lines137138139140141142143144136 unmodified linesresult_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]run_button.click(fn=process, inputs=ips, outputs=[result_gallery])examples = gr.Examples(examples=[["bird.png", "bird","Canny Edge Map"],["turtle.png", "turtle","Scribble"]],inputs = [input_image, prompt, input_control], outputs = [result_gallery], cache_examples = True, fn = process)block.launch(debug = True)136 unmodified lines137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177136 unmodified linesresult_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]run_button.click(fn=process, inputs=ips, outputs=[result_gallery])examples_list = [["bird.png","bird","Canny Edge Map","best quality, extremely detailed",'longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality'1,512,20,9.0,123490213,0.0,100,200],["turtle.png","turtle","Scribble","best quality, extremely detailed",'longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality'1,512,20,9.0,123490213,0.0,100,200]]examples = gr.Examples(examples=examples_list,inputs = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold], outputs = [result_gallery], cache_examples = True, fn = process)examples.dataset.headers = [""]block.launch(debug = True)
app.py+36-3