root commited on
Commit
9664765
1 Parent(s): 0c0a4c2
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -133,6 +133,7 @@ def sr_request_images(img_str, idx):
133
  idx = idx_map[idx]
134
  # image_data = re.sub('^data:image/.+;base64,', '', img_str[idx])
135
  image_data = img_str[idx]
 
136
  d = {"data":[image_data, 0, False]} # batch_size设置为0,sr_opt设置为False
137
  url = "http://flagart.baai.ac.cn/api/general/"
138
  r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
 
133
  idx = idx_map[idx]
134
  # image_data = re.sub('^data:image/.+;base64,', '', img_str[idx])
135
  image_data = img_str[idx]
136
+ print(image_data)
137
  d = {"data":[image_data, 0, False]} # batch_size设置为0,sr_opt设置为False
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"})