Spaces:
Runtime error
Runtime error
root
commited on
Commit
•
34628fc
1
Parent(s):
92a2592
Adjust the layout
Browse files
app.py
CHANGED
@@ -138,9 +138,9 @@ def sr_request_images(img_str, idx):
|
|
138 |
url = "http://flagart.baai.ac.cn/api/general/"
|
139 |
r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
|
140 |
result_text = r.text
|
141 |
-
print(result_text)
|
142 |
content = json.loads(result_text)["data"][0]
|
143 |
-
print(content)
|
144 |
images = [base2picture(content[0])]
|
145 |
|
146 |
return images
|
|
|
138 |
url = "http://flagart.baai.ac.cn/api/general/"
|
139 |
r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
|
140 |
result_text = r.text
|
141 |
+
# print(result_text)
|
142 |
content = json.loads(result_text)["data"][0]
|
143 |
+
# print(content)
|
144 |
images = [base2picture(content[0])]
|
145 |
|
146 |
return images
|