Omnibus commited on
Commit
2bbc358
1 Parent(s): cd5c639

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -6,7 +6,6 @@ from PIL import Image
6
  import gradio as gr
7
  from pathlib import Path
8
  from zipfile import ZipFile
9
- import dif
10
  from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
11
  uid = uuid.uuid4()
12
 
@@ -455,7 +454,7 @@ def gen_im(prompt,model_choice=5,count=1):
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
@@ -510,7 +509,7 @@ with gr.Blocks() as build_app:
510
  with gr.Row():
511
  magic_btn=gr.Button("Magic Prompt")
512
  gen_btn=gr.Button("Generate Images")
513
- gen_im_out=gr.Gallery()
514
  c_image=gr.Image(label="Cropped Image", type="filepath",interactive=False)
515
  c_slider=gr.Slider(0,220,value=0,step=1,label="Adjust Vertical Crop")
516
  c_upbtn=gr.Button("Update Crop")
 
6
  import gradio as gr
7
  from pathlib import Path
8
  from zipfile import ZipFile
 
9
  from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
10
  uid = uuid.uuid4()
11
 
 
454
  output_list=[]
455
  while t<int(count):
456
  proc1=models2[int(model_choice)]
457
+ output1=proc1(prompt)
458
  output_list.append(output1)
459
  inputs=f"{inputs} "
460
  t+=1
 
509
  with gr.Row():
510
  magic_btn=gr.Button("Magic Prompt")
511
  gen_btn=gr.Button("Generate Images")
512
+ gen_im_out=gr.Gallery(columns=2)
513
  c_image=gr.Image(label="Cropped Image", type="filepath",interactive=False)
514
  c_slider=gr.Slider(0,220,value=0,step=1,label="Adjust Vertical Crop")
515
  c_upbtn=gr.Button("Update Crop")