Commit ·
3f741e5
1
Parent(s): fa6712f
Update app.py
Browse files13 unmodified lines1415161718192013 unmodified linesprogress=gr.Progress(track_tqdm=True)): #Shows you a progress bar as your image is generatedimage = pipe( #The function that uses the pipeline to generate imagesprompt, negative_prompt=negative_prompt, num_inference_steps=sampling_steps, guidance_scale=guidance_scale #The parameters that the pipeline will use).image #Separates the image from the other data returnedreturn image #Sends the image back to whoever called this functionwith gr.Blocks() as demo: #Creates a page on a website that you can look at and click on13 unmodified lines1415161718192013 unmodified linesprogress=gr.Progress(track_tqdm=True)): #Shows you a progress bar as your image is generatedimage = pipe( #The function that uses the pipeline to generate imagesprompt, negative_prompt=negative_prompt, num_inference_steps=sampling_steps, guidance_scale=guidance_scale #The parameters that the pipeline will use).images #Separates the image from the other data returnedreturn image #Sends the image back to whoever called this functionwith gr.Blocks() as demo: #Creates a page on a website that you can look at and click on
app.py+1-1