hzruo commited on
Commit
129bdd7
ยท
verified ยท
1 Parent(s): 1287a63

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -2
main.py CHANGED
@@ -407,8 +407,10 @@ async def process_image_generation(msg_data: str, session: requests.Session, hea
407
  job_id, prompt, negative = match.groups()
408
  print(f"Starting image generation process for job_id: {job_id}")
409
 
410
- # ๅ‘้€ๆ€่€ƒๅผ€ๅง‹็š„ๆถˆๆฏ
411
  start_time = time.time()
 
 
412
  think_msg = "<think>\n"
413
  think_msg += "๐ŸŽจ Generating image...\n\n"
414
  think_msg += f"Prompt: {prompt}\n"
@@ -416,8 +418,10 @@ async def process_image_generation(msg_data: str, session: requests.Session, hea
416
  # ๆฃ€ๆŸฅๅ›พ็‰‡็Šถๆ€ๅ’ŒไธŠไผ 
417
  result = await check_image_status(session, job_id, headers)
418
 
419
- # ๅฎŒๆˆๆ€่€ƒ้ƒจๅˆ†
420
  elapsed_time = time.time() - start_time
 
 
421
  think_msg += f"\n๐Ÿค” Thinking for {elapsed_time:.1f}s...\n"
422
  think_msg += "</think>"
423
 
 
407
  job_id, prompt, negative = match.groups()
408
  print(f"Starting image generation process for job_id: {job_id}")
409
 
410
+ # ่ฎฐๅฝ•ๅผ€ๅง‹ๆ—ถ้—ด
411
  start_time = time.time()
412
+
413
+ # ๅ‘้€ๆ€่€ƒๅผ€ๅง‹็š„ๆถˆๆฏ
414
  think_msg = "<think>\n"
415
  think_msg += "๐ŸŽจ Generating image...\n\n"
416
  think_msg += f"Prompt: {prompt}\n"
 
418
  # ๆฃ€ๆŸฅๅ›พ็‰‡็Šถๆ€ๅ’ŒไธŠไผ 
419
  result = await check_image_status(session, job_id, headers)
420
 
421
+ # ่ฎก็ฎ—ๅฎž้™…่Šฑ่ดน็š„ๆ—ถ้—ด
422
  elapsed_time = time.time() - start_time
423
+
424
+ # ๅฎŒๆˆๆ€่€ƒ้ƒจๅˆ†
425
  think_msg += f"\n๐Ÿค” Thinking for {elapsed_time:.1f}s...\n"
426
  think_msg += "</think>"
427