selfitcamera commited on
Commit
7da95c2
1 Parent(s): 38175db
Files changed (2) hide show
  1. app.py +0 -5
  2. utils.py +4 -4
app.py CHANGED
@@ -73,11 +73,6 @@ def onLoad(request: gr.Request):
73
  res = inf['res']
74
  his_datas[i*2] = f"<img src=\"{pose}\" >"
75
  his_datas[i*2+1] = f"<img src=\"{res}\" >"
76
- # his_datas[i*2] = f"![]({inf['pose']})"
77
- # his_datas[i*2+1] = f"![]({inf['res']})"
78
-
79
- # his_datas[i*2] = inf['pose']
80
- # his_datas[i*2+1] = inf['res']
81
  time.sleep(3)
82
  except Exception as e:
83
  print(e)
 
73
  res = inf['res']
74
  his_datas[i*2] = f"<img src=\"{pose}\" >"
75
  his_datas[i*2+1] = f"<img src=\"{res}\" >"
 
 
 
 
 
76
  time.sleep(3)
77
  except Exception as e:
78
  print(e)
utils.py CHANGED
@@ -56,10 +56,10 @@ def getAllInfs(apiUrl, openId, apiKey, clientIp):
56
  if 'data' in ret.json():
57
  records = ret.json()['data']['records']
58
  for record in records:
59
- # res.append({'pose':OssUrl+record['body_url']+"?thumbnail/768x768>",
60
- # 'res':OssUrl+record['showUrl']+"?thumbnail/768x768>"})
61
- res.append({'pose':OssUrl+record['body_url'],
62
- 'res':OssUrl+record['showUrl']})
63
 
64
  return res
65
 
 
56
  if 'data' in ret.json():
57
  records = ret.json()['data']['records']
58
  for record in records:
59
+ res.append({'pose':OssUrl+record['body_url']+"?thumbnail/768x768>",
60
+ 'res':OssUrl+record['showUrl']+"?thumbnail/768x768>"})
61
+ # res.append({'pose':OssUrl+record['body_url'],
62
+ # 'res':OssUrl+record['showUrl']})
63
 
64
  return res
65