Omnibus commited on
Commit
cd5c639
1 Parent(s): 11bb3b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
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
- out1 = models2(prompt,model_choices,count)
455
-
456
- return out1
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>""")