Spaces:
Build error
Build error
Update app.py
Browse files9 unmodified lines1011121314151648 unmodified lines656667686970712 unmodified lines747576777879809 unmodified lines# Project by NymboAPI_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"API_TOKEN = os.getenv("HF_READ_TOKEN")headers = {"Authorization": f"Bearer {API_TOKEN}"}timeout = 10048 unmodified lines"""with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:gr.HTML("<center><h1>FLUX.1-Dev</h1></center>")with gr.Column(elem_id="app-container"):with gr.Row():with gr.Column(elem_id="prompt-container"):2 unmodified lineswith 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, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", 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)9 unmodified lines1011121314151648 unmodified lines656667686970712 unmodified lines747576777879809 unmodified lines# Project by NymboAPI_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"API_TOKEN = os.getenv("HF_READ_TOKEN")headers = {"Authorization": f"Bearer {API_TOKEN}"}timeout = 10048 unmodified lines"""with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:gr.HTML("<center><h1>FLUX.1-Schnell</h1></center>")with gr.Column(elem_id="app-container"):with gr.Row():with gr.Column(elem_id="prompt-container"):2 unmodified lineswith 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, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")steps = gr.Slider(label="Sampling steps", value=4, 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)
app.py+3-3