root commited on
Commit
2b93d47
·
1 Parent(s): 579cf7d
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -136,6 +136,7 @@ def sr_request_images(img_str, idx):
136
  url = "http://flagart.baai.ac.cn/api/general/"
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[0])]
 
136
  url = "http://flagart.baai.ac.cn/api/general/"
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
+ print(result_text)
140
  content = json.loads(result_text)["data"][0]
141
  print(content)
142
  images = [base2picture(content[0])]