archivartaunik commited on
Commit
911e262
·
verified ·
1 Parent(s): 417f500

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -83,16 +83,8 @@ def ui_mass_analyze(date_value, time_from_value, time_to_value, call_type_value,
83
  # Scheduler for automated daily batch (runs on Hugging Face Spaces / Servers)
84
  # ----------------------------------------------------------------------------
85
  try:
86
- import sys
87
- # Ensure local modules are importable
88
- sys.path.append(os.path.dirname(os.path.abspath(__file__)))
89
- print(f"DEBUG: sys.path is {sys.path}")
90
- print(f"DEBUG: Directory contents of {os.getcwd()}: {os.listdir(os.getcwd())}")
91
-
92
- from apscheduler.schedulers.background import BackgroundScheduler
93
-
94
  from apscheduler.schedulers.background import BackgroundScheduler
95
- import run_daily_batch
96
  import datetime
97
 
98
  def run_scheduled_job():
@@ -107,7 +99,7 @@ try:
107
  # For safety/updates, we might want to re-build deps or just use the global 'deps'.
108
  # Using global 'deps' for now as it holds the loaded secrets/config.
109
  bp = deps.batch_params
110
- run_daily_batch.run_batch_process(
111
  deps,
112
  day=target_date,
113
  time_from_str=bp.filter_time_from,
 
83
  # Scheduler for automated daily batch (runs on Hugging Face Spaces / Servers)
84
  # ----------------------------------------------------------------------------
85
  try:
 
 
 
 
 
 
 
 
86
  from apscheduler.schedulers.background import BackgroundScheduler
87
+ from calls_analyser import runner as daily_runner
88
  import datetime
89
 
90
  def run_scheduled_job():
 
99
  # For safety/updates, we might want to re-build deps or just use the global 'deps'.
100
  # Using global 'deps' for now as it holds the loaded secrets/config.
101
  bp = deps.batch_params
102
+ daily_runner.run_batch_process(
103
  deps,
104
  day=target_date,
105
  time_from_str=bp.filter_time_from,