selfitcamera
commited on
Commit
•
d5574e8
1
Parent(s):
4afa326
setup
Browse files
app.py
CHANGED
@@ -66,14 +66,13 @@ def onLoad(request: gr.Request):
|
|
66 |
infs = getAllInfs(ApiUrl, OpenId, ApiKey, client_ip)
|
67 |
print(client_ip, 'history infs: ', len(infs))
|
68 |
print(infs)
|
|
|
69 |
for i, inf in enumerate(infs):
|
70 |
if i>4: continue
|
71 |
pose = inf['pose']
|
72 |
res = inf['res']
|
73 |
-
his_datas[i*2] = f"[pose]({pose})"
|
74 |
-
his_datas[i*2+1] = f"[res]({res})"
|
75 |
-
# his_datas[i*2] = f"![pose]({pose})"
|
76 |
-
# his_datas[i*2+1] = f"![res]({res})"
|
77 |
time.sleep(3)
|
78 |
except Exception as e:
|
79 |
print(e)
|
|
|
66 |
infs = getAllInfs(ApiUrl, OpenId, ApiKey, client_ip)
|
67 |
print(client_ip, 'history infs: ', len(infs))
|
68 |
print(infs)
|
69 |
+
|
70 |
for i, inf in enumerate(infs):
|
71 |
if i>4: continue
|
72 |
pose = inf['pose']
|
73 |
res = inf['res']
|
74 |
+
his_datas[i*2] = f"[pose]({pose})"+f"![pose]({pose})"
|
75 |
+
his_datas[i*2+1] = f"[res]({res})"+f"![res]({res})"
|
|
|
|
|
76 |
time.sleep(3)
|
77 |
except Exception as e:
|
78 |
print(e)
|