Spaces:
Runtime error
Runtime error
lalashechka
commited on
Commit
•
ebcdd4e
1
Parent(s):
2ac6e98
Update app.py
Browse files
app.py
CHANGED
@@ -160,8 +160,7 @@ def mirror(image_output, scale_by, method, gfpgan, codeformer):
|
|
160 |
|
161 |
encoded_string2 = "data:image/png;base64," + encoded_string2
|
162 |
data = {"fn_index":81,"data":[0,0,encoded_string2,None,"","",True,gfpgan,codeformer,0,scale_by,512,512,None,method,"None",1,False,[],"",""],"session_hash":""}
|
163 |
-
|
164 |
-
r = requests.post({url_up}, json=data, timeout=100)
|
165 |
print(r.text)
|
166 |
ph = url_up_f + str(r.json()['data'][0][0]['name'])
|
167 |
return ph
|
|
|
160 |
|
161 |
encoded_string2 = "data:image/png;base64," + encoded_string2
|
162 |
data = {"fn_index":81,"data":[0,0,encoded_string2,None,"","",True,gfpgan,codeformer,0,scale_by,512,512,None,method,"None",1,False,[],"",""],"session_hash":""}
|
163 |
+
r = requests.post(url_up, json=data, timeout=100)
|
|
|
164 |
print(r.text)
|
165 |
ph = url_up_f + str(r.json()['data'][0][0]['name'])
|
166 |
return ph
|