Nymbo commited on
Commit
4a22dd6
1 Parent(s): 491b8ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,7 +10,7 @@ import json
10
 
11
  # Project by Nymbo
12
 
13
- API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
14
  API_TOKEN = os.getenv("HF_READ_TOKEN")
15
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
16
  timeout = 100
@@ -65,7 +65,7 @@ css = """
65
  """
66
 
67
  with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
68
- gr.HTML("<center><h1>FLUX.1-Dev</h1></center>")
69
  with gr.Column(elem_id="app-container"):
70
  with gr.Row():
71
  with gr.Column(elem_id="prompt-container"):
@@ -74,7 +74,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
74
  with gr.Row():
75
  with gr.Accordion("Advanced Settings", open=False):
76
  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")
77
- steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
78
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
79
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
80
  strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
 
10
 
11
  # Project by Nymbo
12
 
13
+ API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
14
  API_TOKEN = os.getenv("HF_READ_TOKEN")
15
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
16
  timeout = 100
 
65
  """
66
 
67
  with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
68
+ gr.HTML("<center><h1>FLUX.1-Schnell</h1></center>")
69
  with gr.Column(elem_id="app-container"):
70
  with gr.Row():
71
  with gr.Column(elem_id="prompt-container"):
 
74
  with gr.Row():
75
  with gr.Accordion("Advanced Settings", open=False):
76
  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")
77
+ steps = gr.Slider(label="Sampling steps", value=4, minimum=1, maximum=100, step=1)
78
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
79
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
80
  strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)