Spaces:
Running
Running
lalashechka
commited on
Commit
•
e1a3b29
1
Parent(s):
5ec6635
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def convert_url_filename(url):
|
|
15 |
return new_url
|
16 |
|
17 |
def process_image(image_path):
|
18 |
-
url_image = "https://lalashechka-
|
19 |
encoded_url_image = convert_url_filename(url_image)
|
20 |
print(encoded_url_image)
|
21 |
headers = {"accept": "*/*","accept-language": "en-US,en;q=0.9","cache-control": "no-cache","content-type": "application/json","origin": "https://replicate.com","pragma": "no-cache","priority": "u=1, i","referer": "https://replicate.com/","sec-ch-ua": '"Not;A=Brand";v="24", "Chromium";v="128"',"sec-ch-ua-mobile": "?0","sec-ch-ua-platform": '"Linux"',"sec-fetch-dest": "empty","sec-fetch-mode": "cors","sec-fetch-site": "same-site","user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"}
|
|
|
15 |
return new_url
|
16 |
|
17 |
def process_image(image_path):
|
18 |
+
url_image = "https://lalashechka-gfpgan.hf.space/gradio_api/file=" + image_path
|
19 |
encoded_url_image = convert_url_filename(url_image)
|
20 |
print(encoded_url_image)
|
21 |
headers = {"accept": "*/*","accept-language": "en-US,en;q=0.9","cache-control": "no-cache","content-type": "application/json","origin": "https://replicate.com","pragma": "no-cache","priority": "u=1, i","referer": "https://replicate.com/","sec-ch-ua": '"Not;A=Brand";v="24", "Chromium";v="128"',"sec-ch-ua-mobile": "?0","sec-ch-ua-platform": '"Linux"',"sec-fetch-dest": "empty","sec-fetch-mode": "cors","sec-fetch-site": "same-site","user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"}
|