Spaces:
Running
Running
ASDFASADSFDSFSFSDAFSA
Browse files
routes/aminoOSRapi/main.py
CHANGED
@@ -22,7 +22,7 @@ def apipredict(request):
|
|
22 |
if pix[x, y] == forReplace:
|
23 |
image.putpixel((x, y), newColor)
|
24 |
|
25 |
-
name = ''.join([random.choice(string.ascii_lowercase) for _ in range(random.randint(6,12)])
|
26 |
response = requests.get(url)
|
27 |
with open(f'{name}.png', 'wb') as fp:
|
28 |
fp.write(response.content)
|
|
|
22 |
if pix[x, y] == forReplace:
|
23 |
image.putpixel((x, y), newColor)
|
24 |
|
25 |
+
name = ''.join([random.choice(string.ascii_lowercase) for _ in range(random.randint(6,12))])
|
26 |
response = requests.get(url)
|
27 |
with open(f'{name}.png', 'wb') as fp:
|
28 |
fp.write(response.content)
|