Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -451,10 +451,15 @@ def get_prompts(prompt_text):
|
|
451 |
return gen
|
452 |
|
453 |
def gen_im(prompt,model_choice=5,count=1):
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
|
|
|
|
|
|
|
|
|
|
458 |
|
459 |
with gr.Blocks() as build_app:
|
460 |
gr.Markdown("""<center><h1>Interactive Twitter Card Builder</h1></center>""")
|
|
|
451 |
return gen
|
452 |
|
453 |
def gen_im(prompt,model_choice=5,count=1):
|
454 |
+
t=0
|
455 |
+
output_list=[]
|
456 |
+
while t<int(count):
|
457 |
+
proc1=models2[int(model_choice)]
|
458 |
+
output1=proc1(inputs)
|
459 |
+
output_list.append(output1)
|
460 |
+
inputs=f"{inputs} "
|
461 |
+
t+=1
|
462 |
+
return(output_list)
|
463 |
|
464 |
with gr.Blocks() as build_app:
|
465 |
gr.Markdown("""<center><h1>Interactive Twitter Card Builder</h1></center>""")
|