Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ mmodels = {
|
|
34 |
timeout = 100
|
35 |
# PLEASE ❤ like t❤ 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)
|
36 |
|
37 |
-
def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, gpt=False, width=
|
38 |
if prompt == "" or prompt == None:
|
39 |
return None
|
40 |
|
@@ -174,7 +174,7 @@ with gr.Blocks(css=css) as dalle:
|
|
174 |
|
175 |
with gr.Tab("Beta"):
|
176 |
with gr.Row():
|
177 |
-
width = gr.Slider(label="Ширина", minimum=15, maximum=2000, value=
|
178 |
height = gr.Slider(label="Высота", minimum=15, maximum=2000, value=1024, step=1)
|
179 |
|
180 |
with gr.Tab("Информация"):
|
|
|
34 |
timeout = 100
|
35 |
# PLEASE ❤ like t❤ 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)
|
36 |
|
37 |
+
def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, gpt=False, width=512, height=1024):
|
38 |
if prompt == "" or prompt == None:
|
39 |
return None
|
40 |
|
|
|
174 |
|
175 |
with gr.Tab("Beta"):
|
176 |
with gr.Row():
|
177 |
+
width = gr.Slider(label="Ширина", minimum=15, maximum=2000, value=512, step=1)
|
178 |
height = gr.Slider(label="Высота", minimum=15, maximum=2000, value=1024, step=1)
|
179 |
|
180 |
with gr.Tab("Информация"):
|