Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,8 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
|
|
| 114 |
"height": 1024,
|
| 115 |
"guidance_scale": cfg_scale,
|
| 116 |
"num_inference_steps": steps,
|
| 117 |
-
"resolution": "512 x 1024"
|
|
|
|
| 118 |
}
|
| 119 |
|
| 120 |
response = requests.post(f"{api_base}{API_URL}", headers=headers, json=payload, timeout=timeout)
|
|
@@ -168,6 +169,10 @@ with gr.Blocks(css=css) as dalle:
|
|
| 168 |
with gr.Row():
|
| 169 |
gpt = gr.Checkbox(label="ChatGPT")
|
| 170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
with gr.Tab("Информация"):
|
| 172 |
with gr.Row():
|
| 173 |
gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
|
|
|
|
| 114 |
"height": 1024,
|
| 115 |
"guidance_scale": cfg_scale,
|
| 116 |
"num_inference_steps": steps,
|
| 117 |
+
"resolution": "512 x 1024",
|
| 118 |
+
"negative_prompt": is_negative
|
| 119 |
}
|
| 120 |
|
| 121 |
response = requests.post(f"{api_base}{API_URL}", headers=headers, json=payload, timeout=timeout)
|
|
|
|
| 169 |
with gr.Row():
|
| 170 |
gpt = gr.Checkbox(label="ChatGPT")
|
| 171 |
|
| 172 |
+
with gr.Tab("Информация"):
|
| 173 |
+
with gr.Row():
|
| 174 |
+
gr.Markdown("Soon")
|
| 175 |
+
|
| 176 |
with gr.Tab("Информация"):
|
| 177 |
with gr.Row():
|
| 178 |
gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
|