Spaces:
Runtime error
Runtime error
root
commited on
Commit
·
50ed3c0
1
Parent(s):
82c0486
add sr
Browse files
app.py
CHANGED
@@ -137,7 +137,8 @@ def sr_request_images(img_str, idx):
|
|
137 |
r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
|
138 |
result_text = r.text
|
139 |
content = json.loads(result_text)["data"][0]
|
140 |
-
|
|
|
141 |
|
142 |
return images
|
143 |
|
|
|
137 |
r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
|
138 |
result_text = r.text
|
139 |
content = json.loads(result_text)["data"][0]
|
140 |
+
print(content)
|
141 |
+
images = [base2picture(content)]
|
142 |
|
143 |
return images
|
144 |
|