Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
|
|
87 |
# png_path = "img.png"
|
88 |
global loopcounter
|
89 |
# png_path = get_current_time() + "_" + str(loopcounter) + ".png"
|
90 |
-
png_path = get_current_time() + "_" + str(
|
91 |
# png_path = get_current_time() + "_" + str(models_load[model_str]) + "_" + str(seed) + ".png"
|
92 |
loopcounter += 1
|
93 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
@@ -141,7 +141,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
141 |
with gr.Tab('6 Models'):
|
142 |
with gr.Column(scale=2):
|
143 |
with gr.Group():
|
144 |
-
txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=
|
145 |
neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
146 |
with gr.Accordion("Advanced", open=False, visible=True):
|
147 |
with gr.Row():
|
|
|
87 |
# png_path = "img.png"
|
88 |
global loopcounter
|
89 |
# png_path = get_current_time() + "_" + str(loopcounter) + ".png"
|
90 |
+
png_path = get_current_time() + "_" + str(model_str) + ".png"
|
91 |
# png_path = get_current_time() + "_" + str(models_load[model_str]) + "_" + str(seed) + ".png"
|
92 |
loopcounter += 1
|
93 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
|
|
141 |
with gr.Tab('6 Models'):
|
142 |
with gr.Column(scale=2):
|
143 |
with gr.Group():
|
144 |
+
txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=3, autofocus=1)
|
145 |
neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
146 |
with gr.Accordion("Advanced", open=False, visible=True):
|
147 |
with gr.Row():
|