Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,10 @@ def sky_fn(inp):
|
|
41 |
#dif = models[0]
|
42 |
uid=uuid.uuid4()
|
43 |
output=proc1(inp,5,1)
|
|
|
44 |
#output=dif(inp)
|
45 |
print(output)
|
46 |
-
outp=Image.open(
|
47 |
width, height = outp.size
|
48 |
rat = width/height
|
49 |
if width > height:
|
@@ -68,8 +69,10 @@ def star_fn(inp):
|
|
68 |
output=proc2(inp,5,1)
|
69 |
#output=proc2.send_it(inp,5,1)
|
70 |
#output=dif(inp)
|
|
|
|
|
71 |
print(output)
|
72 |
-
outp=Image.open(
|
73 |
width, height = outp.size
|
74 |
rat = width/height
|
75 |
if width > height:
|
|
|
41 |
#dif = models[0]
|
42 |
uid=uuid.uuid4()
|
43 |
output=proc1(inp,5,1)
|
44 |
+
in_url=f'https://omnibus-fast-diff.hf.space/file={output}'
|
45 |
#output=dif(inp)
|
46 |
print(output)
|
47 |
+
outp=Image.open(in_url)
|
48 |
width, height = outp.size
|
49 |
rat = width/height
|
50 |
if width > height:
|
|
|
69 |
output=proc2(inp,5,1)
|
70 |
#output=proc2.send_it(inp,5,1)
|
71 |
#output=dif(inp)
|
72 |
+
in_url=f'https://omnibus-fast-diff.hf.space/file={output}'
|
73 |
+
|
74 |
print(output)
|
75 |
+
outp=Image.open(in_url)
|
76 |
width, height = outp.size
|
77 |
rat = width/height
|
78 |
if width > height:
|