Spaces:
Runtime error
Runtime error
fix gradio version again
Browse filesFiles changed (2)
- app.py+17-8
- requirements.txt+1-1
81 unmodified lines8283848586878889909192939495969798991001011021031041051063 unmodified lines11011111211311411581 unmodified linesreturn gr.update(value=None)title = """<h1 align="center">Diffusers Image Fill</h1><div align="center">Draw the mask over the subject you want to erase or change.</div>"""with gr.Blocks() as demo:gr.HTML(title)with gr.Row():model_selection = gr.Dropdown(choices=list(MODELS.keys()),value="RealVisXL V5.0 Lightning",label="Model",)run_button = gr.Button("Generate")with gr.Row():input_image = gr.ImageMask(type="pil",label="Input Image",crop_size=(1024, 1024),layers=False,sources=["upload"],)3 unmodified lineslabel="Generated Image",)run_button.click(fn=clear_result,inputs=None,81 unmodified lines8283848586878889909192939495969798991001011021031041051061071081093 unmodified lines11311411511611711811912012112212312481 unmodified linesreturn gr.update(value=None)css = """.gradio-container {width: 1024px !important;}"""title = """<h1 align="center">Diffusers Image Fill</h1><div align="center">Draw the mask over the subject you want to erase or change.</div>"""with gr.Blocks(css=css) as demo:gr.HTML(title)run_button = gr.Button("Generate")with gr.Row():input_image = gr.ImageMask(type="pil",label="Input Image",crop_size=(1024, 1024),canvas_size=(1024, 1024),layers=False,sources=["upload"],)3 unmodified lineslabel="Generated Image",)model_selection = gr.Dropdown(choices=list(MODELS.keys()),value="RealVisXL V5.0 Lightning",label="Model",)run_button.click(fn=clear_result,inputs=None,
123456torchspacesgradiogradio-imageslidernumpy==1.26.4transformers123456torchspacesgradio==4.42.0gradio-imageslidernumpy==1.26.4transformers
app.py+17-8
requirements.txt+1-1