Update app.py
Browse files
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 = {
|