Omnibus commited on
Commit
bd74b6e
1 Parent(s): 75eccb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,12 +73,12 @@ def thread_dif(out_prompt,mod):
73
  out = Image.open(io.BytesIO(r.content))
74
  out_box.append(out)
75
  html_out = "<div class='grid_class'>"+out_html+"</div>"
76
- yield out_box,html_out
77
  except Exception as e:
78
  out_html+=str(e)
79
  html_out = "<div class='grid_class'>"+out_html+"</div>"
80
 
81
- yield out_box,html_out
82
 
83
 
84
 
@@ -91,7 +91,7 @@ def start_threads(prompt):
91
  print (t2)
92
  a1,a2=t1.result()
93
  b1,b2=t2.result()
94
- yield a1,a2
95
 
96
  css="""
97
  .grid_class{
 
73
  out = Image.open(io.BytesIO(r.content))
74
  out_box.append(out)
75
  html_out = "<div class='grid_class'>"+out_html+"</div>"
76
+ return out_box,html_out
77
  except Exception as e:
78
  out_html+=str(e)
79
  html_out = "<div class='grid_class'>"+out_html+"</div>"
80
 
81
+ return out_box,html_out
82
 
83
 
84
 
 
91
  print (t2)
92
  a1,a2=t1.result()
93
  b1,b2=t2.result()
94
+ return a1,a2
95
 
96
  css="""
97
  .grid_class{