smgc commited on
Commit
ab730f6
1 Parent(s): bc4ed93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -147,8 +147,8 @@ def handle_request():
147
  logger.error(f"Error parsing image generation response: {str(e)}")
148
  return jsonify({"error": "Failed to parse image generation response"}), 500
149
 
150
- unique_id = int(time.time() * 1000)
151
- current_timestamp = unique_id // 1000
152
  system_fingerprint = "fp_" + ''.join(random.choices('abcdefghijklmnopqrstuvwxyz0123456789', k=9))
153
 
154
  image_data = {'data': [{'url': image_url}]}
 
147
  logger.error(f"Error parsing image generation response: {str(e)}")
148
  return jsonify({"error": "Failed to parse image generation response"}), 500
149
 
150
+ unique_id = str(int(time.time() * 1000)) # 生成字符串类型的 unique_id
151
+ current_timestamp = int(time.time())
152
  system_fingerprint = "fp_" + ''.join(random.choices('abcdefghijklmnopqrstuvwxyz0123456789', k=9))
153
 
154
  image_data = {'data': [{'url': image_url}]}