Spaces:
Runtime error
Runtime error
jjourney1125
commited on
Commit
•
2640c8d
1
Parent(s):
a2cf94d
Update app.py
Browse files
app.py
CHANGED
@@ -23,10 +23,10 @@ def setup_model(args):
|
|
23 |
def main(img):
|
24 |
|
25 |
# setup folder and path
|
26 |
-
basewidth = 256
|
27 |
-
wpercent = (basewidth/float(img.size[0]))
|
28 |
-
hsize = int((float(img.size[1])*float(wpercent)))
|
29 |
-
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
30 |
img.save("test/1.png", "PNG")
|
31 |
|
32 |
folder, save_dir, border, window_size = setup(args)
|
@@ -343,4 +343,5 @@ if __name__ == '__main__':
|
|
343 |
description=description,
|
344 |
article=article,
|
345 |
examples=examples,
|
346 |
-
).launch(enable_queue=True
|
|
|
|
23 |
def main(img):
|
24 |
|
25 |
# setup folder and path
|
26 |
+
#basewidth = 256
|
27 |
+
#wpercent = (basewidth/float(img.size[0]))
|
28 |
+
#hsize = int((float(img.size[1])*float(wpercent)))
|
29 |
+
#img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
30 |
img.save("test/1.png", "PNG")
|
31 |
|
32 |
folder, save_dir, border, window_size = setup(args)
|
|
|
343 |
description=description,
|
344 |
article=article,
|
345 |
examples=examples,
|
346 |
+
).launch(enable_queue=True,
|
347 |
+
share=True)
|