Spaces:
Build error
Build error
pva22 commited on
Commit ·
776aaec
1
Parent(s): 6c307e5
new lora and app
Browse files118 unmodified lines11912012112212312414 unmodified lines13914014114214314437 unmodified lines1821831841851861871881 unmodified line190191192193194195196197198199200201118 unmodified lines'height': height,'generator': generator,}return pipe(**params).images[0], seed14 unmodified lineswith gr.Blocks(css=css) as demo:with gr.Column(elem_id="col-container"):gr.Markdown(" # Text-to-Image")with gr.Row():37 unmodified linesrandomize_seed = gr.Checkbox(label="Randomize seed", value=False)gr.Examples(examples=examples, inputs=[prompt])gr.on(triggers=[run_button.click, prompt.submit],fn=infer,1 unmodified lineprompt,negative_prompt,randomize_seed,model_repo_id,seed],outputs=[result, seed],)if __name__ == "__main__":demo.launch()118 unmodified lines11912012112212312412512612714 unmodified lines14214314414514614714837 unmodified lines1861871881891901911921931941951961971981992002012022032042052062072082092101 unmodified line212213214215216217218219220221222223224118 unmodified lines'height': height,'generator': generator,}print(width)print(height)return pipe(**params).images[0], seed14 unmodified lineswith gr.Blocks(css=css) as demo:with gr.Column(elem_id="col-container"):gr.Markdown(" # Text-to-Image")with gr.Row():37 unmodified linesrandomize_seed = gr.Checkbox(label="Randomize seed", value=False)with gr.Row():width = gr.Slider(label="Width",minimum=256,maximum=MAX_IMAGE_SIZE,step=32,value=512, # Replace with defaults that work for your model)height = gr.Slider(label="Height",minimum=256,maximum=MAX_IMAGE_SIZE,step=32,value=512, # Replace with defaults that work for your model)gr.Examples(examples=examples, inputs=[prompt])gr.on(triggers=[run_button.click, prompt.submit],fn=infer,1 unmodified lineprompt,negative_prompt,randomize_seed,width,height,model_repo_id,seed],outputs=[result, seed],)if __name__ == "__main__":demo.launch()
app.py+26-3