root commited on
Commit
bdead94
·
1 Parent(s): 3be2d78

Front-Back connect test

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -137,6 +137,7 @@ def img2img(*args):
137
 
138
  url = "http://flagart.baai.ac.cn/api/img2img/"
139
  d = {"data":args}
 
140
  r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
141
  print(r)
142
  result_text = r.text
 
137
 
138
  url = "http://flagart.baai.ac.cn/api/img2img/"
139
  d = {"data":args}
140
+ print(d)
141
  r = requests.post(url, json=d, headers={"Content-Type": "application/json", "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive"})
142
  print(r)
143
  result_text = r.text