XA7 commited on
Commit
ff489da
·
1 Parent(s): f8db1be
utils/comic_panel_splitter.py CHANGED
@@ -15,14 +15,7 @@ def log_execution(func):
15
  end_time = time.time()
16
  end_str = datetime.fromtimestamp(end_time).strftime('%Y-%m-%d %H:%M:%S')
17
  duration = end_time - start_time
18
-
19
- # Write to file (works in Colab)
20
- with open('content/logs.txt', 'a') as f:
21
- f.write(f"{func.__name__}, start: {start_str}, end: {end_str}, duration: {duration:.4f}s\n")
22
-
23
- # Also print to see output immediately
24
- print(f"{func.__name__}, start: {start_str}, end: {end_str}, duration: {duration:.4f}s")
25
-
26
  return result
27
  return wrapper
28
 
 
15
  end_time = time.time()
16
  end_str = datetime.fromtimestamp(end_time).strftime('%Y-%m-%d %H:%M:%S')
17
  duration = end_time - start_time
18
+
 
 
 
 
 
 
 
19
  return result
20
  return wrapper
21
 
utils/story_management.py CHANGED
@@ -22,13 +22,7 @@ def log_execution(func):
22
  end_time = time.time()
23
  end_str = datetime.fromtimestamp(end_time).strftime('%Y-%m-%d %H:%M:%S')
24
  duration = end_time - start_time
25
-
26
- # Write to file (works in Colab)
27
- with open('content/logs.txt', 'a') as f:
28
- f.write(f"{func.__name__}, start: {start_str}, end: {end_str}, duration: {duration:.4f}s\n")
29
-
30
- # Also print to see output immediately
31
- print(f"{func.__name__}, start: {start_str}, end: {end_str}, duration: {duration:.4f}s")
32
 
33
  return result
34
  return wrapper
 
22
  end_time = time.time()
23
  end_str = datetime.fromtimestamp(end_time).strftime('%Y-%m-%d %H:%M:%S')
24
  duration = end_time - start_time
25
+
 
 
 
 
 
 
26
 
27
  return result
28
  return wrapper