Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ mmodels = {
|
|
35 |
timeout = 100
|
36 |
# PLEASE ❤ like ❤ this space. Please like me. I am 12 years old, one of my projects is: https://ai-hub.rf.gd . I live in Russia, I don't know English very well. Therefore, I apologize that there is only Russian here, but I think it will not be difficult to translate all this. (For example, using gpt)
|
37 |
|
38 |
-
def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1,
|
39 |
if prompt == "" or prompt == None:
|
40 |
return None
|
41 |
|
@@ -161,7 +161,7 @@ with gr.Blocks(css=css) as dalle:
|
|
161 |
with gr.Row():
|
162 |
steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=70, step=1)
|
163 |
with gr.Row():
|
164 |
-
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
165 |
with gr.Row():
|
166 |
method = gr.Radio(label="Sampling method", value="Euler a", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
167 |
with gr.Row():
|
|
|
35 |
timeout = 100
|
36 |
# PLEASE ❤ like ❤ this space. Please like me. I am 12 years old, one of my projects is: https://ai-hub.rf.gd . I live in Russia, I don't know English very well. Therefore, I apologize that there is only Russian here, but I think it will not be difficult to translate all this. (For example, using gpt)
|
37 |
|
38 |
+
def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, gpt=False):
|
39 |
if prompt == "" or prompt == None:
|
40 |
return None
|
41 |
|
|
|
161 |
with gr.Row():
|
162 |
steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=70, step=1)
|
163 |
with gr.Row():
|
164 |
+
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=0.1)
|
165 |
with gr.Row():
|
166 |
method = gr.Radio(label="Sampling method", value="Euler a", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
167 |
with gr.Row():
|