root commited on
Commit
7ae8f0e
1 Parent(s): eea90be

fixed sr bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ def sr_request_images(img_str, idx, w, h, seed):
140
  url = "http://flagart.baai.ac.cn/api/general/"
141
  r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
142
  result_text = r.text
143
- # print(result_text)
144
  content = json.loads(result_text)["data"][0]
145
  # print(content)
146
  images = [base2picture(content[0])]
 
140
  url = "http://flagart.baai.ac.cn/api/general/"
141
  r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
142
  result_text = r.text
143
+ print(result_text)
144
  content = json.loads(result_text)["data"][0]
145
  # print(content)
146
  images = [base2picture(content[0])]