Rooni commited on
Commit
d9a019a
1 Parent(s): b1f1290

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,8 +10,8 @@ from langdetect import detect
10
 
11
  api_base = os.getenv("API_BASE")
12
  mmodels = {
13
- "OpenDALL-E 1.1": "dataautogpt3/OpenDalleV1.1",
14
  "DALL-E 3 XL": "openskyml/dalle-3-xl",
 
15
  "Playground 2": "playgroundai/playground-v2-1024px-aesthetic",
16
  "Openjourney 4": "prompthero/openjourney-v4",
17
  "AbsoluteReality 1.8.1": "digiplay/AbsoluteReality_v1.8.1",
@@ -154,7 +154,7 @@ with gr.Blocks(css=css) as dalle:
154
  text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
155
  with gr.Row():
156
  with gr.Accordion(label="Модель", open=True):
157
- model = gr.Radio(show_label=False, value="OpenDALL-E 1.1", choices=list(mmodels.keys()))
158
 
159
 
160
 
@@ -162,13 +162,13 @@ with gr.Blocks(css=css) as dalle:
162
  with gr.Row():
163
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", 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")
164
  with gr.Row():
165
- steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
166
  with gr.Row():
167
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
168
  with gr.Row():
169
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
170
  with gr.Row():
171
- strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
172
  with gr.Row():
173
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
174
  with gr.Row():
 
10
 
11
  api_base = os.getenv("API_BASE")
12
  mmodels = {
 
13
  "DALL-E 3 XL": "openskyml/dalle-3-xl",
14
+ "OpenDALL-E 1.1": "dataautogpt3/OpenDalleV1.1",
15
  "Playground 2": "playgroundai/playground-v2-1024px-aesthetic",
16
  "Openjourney 4": "prompthero/openjourney-v4",
17
  "AbsoluteReality 1.8.1": "digiplay/AbsoluteReality_v1.8.1",
 
154
  text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
155
  with gr.Row():
156
  with gr.Accordion(label="Модель", open=True):
157
+ model = gr.Radio(show_label=False, value="DALL-E 3 XL", choices=list(mmodels.keys()))
158
 
159
 
160
 
 
162
  with gr.Row():
163
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", 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")
164
  with gr.Row():
165
+ steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=70, step=1)
166
  with gr.Row():
167
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
168
  with gr.Row():
169
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
170
  with gr.Row():
171
+ strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=1)
172
  with gr.Row():
173
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
174
  with gr.Row():