XA7 commited on
Commit
f8db1be
·
1 Parent(s): 84c0ff5
Files changed (1) hide show
  1. ui/story_interface.py +0 -7
ui/story_interface.py CHANGED
@@ -19,13 +19,6 @@ def log_execution(func):
19
  end_str = datetime.fromtimestamp(end_time).strftime('%Y-%m-%d %H:%M:%S')
20
  duration = end_time - start_time
21
 
22
- # Write to file (works in Colab)
23
- with open('content/logs.txt', 'a') as f:
24
- f.write(f"{func.__name__}, start: {start_str}, end: {end_str}, duration: {duration:.4f}s\n")
25
-
26
- # Also print to see output immediately
27
- print(f"{func.__name__}, start: {start_str}, end: {end_str}, duration: {duration:.4f}s")
28
-
29
  return result
30
  return wrapper
31
  @log_execution
 
19
  end_str = datetime.fromtimestamp(end_time).strftime('%Y-%m-%d %H:%M:%S')
20
  duration = end_time - start_time
21
 
 
 
 
 
 
 
 
22
  return result
23
  return wrapper
24
  @log_execution