Spaces:
Sleeping
Sleeping
Commit
·
65741b8
1
Parent(s):
c17fbdc
Update main.py
Browse files
main.py
CHANGED
@@ -4,7 +4,6 @@ import requests
|
|
4 |
import os
|
5 |
import warnings
|
6 |
import io
|
7 |
-
import getpass
|
8 |
|
9 |
from PIL import Image
|
10 |
from stability_sdk import client
|
@@ -69,4 +68,4 @@ def generate_and_upscale_image(text_prompt, clipdrop_api_key, stability_api_key,
|
|
69 |
|
70 |
response = requests.get(output)
|
71 |
final_img = Image.open(io.BytesIO(response.content))
|
72 |
-
final_img.save(os.path.join(download_path, "gfpgan_upscaled_image.png"))
|
|
|
4 |
import os
|
5 |
import warnings
|
6 |
import io
|
|
|
7 |
|
8 |
from PIL import Image
|
9 |
from stability_sdk import client
|
|
|
68 |
|
69 |
response = requests.get(output)
|
70 |
final_img = Image.open(io.BytesIO(response.content))
|
71 |
+
final_img.save(os.path.join(download_path, "gfpgan_upscaled_image.png"))
|