Spaces:
Runtime error
Runtime error
Update app.py
Browse files64 unmodified lines65666768697071727374757677787980818264 unmodified lines"""with gr.Blocks(theme='Nymbo/Nymbo_Theme') as app:with gr.Row():with gr.Column(elem_id="prompt-container"):with gr.Row():text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=3, elem_id="prompt-text-input")with gr.Row():with gr.Accordion("Advanced Settings", open=False):negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)with gr.Row():text_button = gr.Button("Run", variant='primary', elem_id="gen-button")64 unmodified lines65666768697071727374757677787980818264 unmodified lines"""with gr.Blocks(theme='Nymbo/Nymbo_Theme') as app:with gr.Row():with gr.Column(elem_id="prompt-container"):with gr.Row():text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=3, elem_id="prompt-text-input")with gr.Row():with gr.Accordion("Advanced Settings", open=False):negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)with gr.Row():text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
app.py+12-12