smgc commited on
Commit
70ac8d0
1 Parent(s): a7e5c5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,8 +41,8 @@ def handle_request():
41
  response_body = response.json()
42
 
43
  image_url = response_body['images'][0]['url']
44
- unique_id = int(time.time() * 1000)
45
- current_timestamp = unique_id // 1000
46
 
47
  if stream:
48
  response_payload = {
 
41
  response_body = response.json()
42
 
43
  image_url = response_body['images'][0]['url']
44
+ unique_id = str(int(time.time() * 1000)) # Convert id to string
45
+ current_timestamp = int(unique_id) // 1000
46
 
47
  if stream:
48
  response_payload = {