Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def run_dif(out_prompt,model_drop,cnt):
|
|
21 |
out_box=[]
|
22 |
out_html=""
|
23 |
#for i,ea in enumerate(loaded_model):
|
24 |
-
for i in range(cnt):
|
25 |
p_seed+=" "
|
26 |
try:
|
27 |
model=loaded_model[int(model_drop)]
|
@@ -133,7 +133,7 @@ with gr.Blocks(css=css) as app:
|
|
133 |
|
134 |
with gr.Row():
|
135 |
model_drop=gr.Dropdown(label="Models", choices=models, type='index', value=models[0])
|
136 |
-
cnt = gr.Number()
|
137 |
out_html=gr.HTML()
|
138 |
outp=gr.Gallery()
|
139 |
btn.click(run_dif,[inp,model_drop,cnt],[outp,out_html])
|
|
|
21 |
out_box=[]
|
22 |
out_html=""
|
23 |
#for i,ea in enumerate(loaded_model):
|
24 |
+
for i in range(int(cnt)):
|
25 |
p_seed+=" "
|
26 |
try:
|
27 |
model=loaded_model[int(model_drop)]
|
|
|
133 |
|
134 |
with gr.Row():
|
135 |
model_drop=gr.Dropdown(label="Models", choices=models, type='index', value=models[0])
|
136 |
+
cnt = gr.Number(value=1)
|
137 |
out_html=gr.HTML()
|
138 |
outp=gr.Gallery()
|
139 |
btn.click(run_dif,[inp,model_drop,cnt],[outp,out_html])
|