arshy commited on
Commit
40d6e44
·
1 Parent(s): ac347d2

updated app.py

Browse files
Files changed (2) hide show
  1. app.py +7 -1
  2. winning_trades_percentage.csv +3 -0
app.py CHANGED
@@ -28,8 +28,15 @@ from tabs.error import (
28
  plot_week_error_data
29
  )
30
  from tabs.about import about_olas_predict
 
31
 
32
 
 
 
 
 
 
 
33
  def update_trades_plots():
34
  global tools_df, trades_df, error_df, error_overall_df, winning_rate_df, winning_rate_overall_df, trades_count_df, trades_winning_rate_df
35
 
@@ -421,5 +428,4 @@ scheduler = BackgroundScheduler(timezone=utc)
421
  scheduler.add_job(pull_refresh_data, CronTrigger(hour=0, minute=0)) # Runs daily at 12 AM UTC
422
  scheduler.start()
423
 
424
-
425
  demo.queue(default_concurrency_limit=40).launch()
 
28
  plot_week_error_data
29
  )
30
  from tabs.about import about_olas_predict
31
+ import psutil
32
 
33
 
34
+
35
+ def log_ram_usage():
36
+ process = psutil.Process()
37
+ mem_info = process.memory_info()
38
+ logging.info(f"RAM Usage: RSS={mem_info.rss} bytes, VMS={mem_info.vms} bytes")
39
+
40
  def update_trades_plots():
41
  global tools_df, trades_df, error_df, error_overall_df, winning_rate_df, winning_rate_overall_df, trades_count_df, trades_winning_rate_df
42
 
 
428
  scheduler.add_job(pull_refresh_data, CronTrigger(hour=0, minute=0)) # Runs daily at 12 AM UTC
429
  scheduler.start()
430
 
 
431
  demo.queue(default_concurrency_limit=40).launch()
winning_trades_percentage.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86e278f91e287f692ad257528b82f60a53062ae697adbd911807eecbfb3c8b94
3
+ size 26777