Update app.py
Browse files
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 |
-
|
77 |
except Exception as e:
|
78 |
out_html+=str(e)
|
79 |
html_out = "<div class='grid_class'>"+out_html+"</div>"
|
80 |
|
81 |
-
|
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 |
-
|
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{
|