Commit ·
00b3c84
1
Parent(s): 5e2764c
Update app.py
Browse files12 unmodified lines1314151617181912 unmodified linesprompt, negative_prompt, sampling_steps, guidance_scale, #These are the parameters that control image generationprogress=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[0] #Separates the image from the other data returnedreturn image #Sends the image back to whoever called this function12 unmodified lines1314151617181912 unmodified linesprompt, negative_prompt, sampling_steps, guidance_scale, #These are the parameters that control image generationprogress=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, 768, negative_prompt=negative_prompt, num_inference_steps=sampling_steps, guidance_scale=guidance_scale #The parameters that the pipeline will use).images[0] #Separates the image from the other data returnedreturn image #Sends the image back to whoever called this function
app.py+1-1