Spaces:
Runtime error
Runtime error
lalashechka
commited on
Commit
•
ccd1bf1
1
Parent(s):
ebcdd4e
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,8 @@ def mirror(image_output, scale_by, method, gfpgan, codeformer):
|
|
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 |
-
|
|
|
166 |
return ph
|
167 |
|
168 |
css = """
|
|
|
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 |
+
print(r.json()['data'][0][0]['name'])
|
166 |
+
ph = "https://darkstorm2150-protogen-web-ui.hf.space/file=" + str(r.json()['data'][0][0]['name'])
|
167 |
return ph
|
168 |
|
169 |
css = """
|