Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -456,7 +456,7 @@ def gen_im(prompt,model_choice=5,count=1):
|
|
456 |
output_list=[]
|
457 |
while t<int(count):
|
458 |
proc1=models2[int(model_choice)]
|
459 |
-
output1=proc1(prompt)
|
460 |
output_list.append(output1)
|
461 |
prompt=f"{prompt} "
|
462 |
t+=1
|
@@ -503,7 +503,7 @@ with gr.Blocks() as build_app:
|
|
503 |
def_im = gr.Button("Load Default Image")
|
504 |
#gen_im = gr.Button("Generate Image")
|
505 |
with gr.Accordion("Generated Image Controls", open=False):
|
506 |
-
prompt_input=gr.Textbox("Seed Prompt"
|
507 |
with gr.Row():
|
508 |
model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
|
509 |
count = gr.Number(value=1)
|
|
|
456 |
output_list=[]
|
457 |
while t<int(count):
|
458 |
proc1=models2[int(model_choice)]
|
459 |
+
output1=proc1(prompt, seed=(t+111))
|
460 |
output_list.append(output1)
|
461 |
prompt=f"{prompt} "
|
462 |
t+=1
|
|
|
503 |
def_im = gr.Button("Load Default Image")
|
504 |
#gen_im = gr.Button("Generate Image")
|
505 |
with gr.Accordion("Generated Image Controls", open=False):
|
506 |
+
prompt_input=gr.Textbox(label = "Seed Prompt")
|
507 |
with gr.Row():
|
508 |
model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
|
509 |
count = gr.Number(value=1)
|