Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,10 @@ 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 |
from apscheduler.schedulers.background import BackgroundScheduler
|
| 87 |
import run_daily_batch
|
| 88 |
import datetime
|
|
|
|
| 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 |
+
|
| 90 |
from apscheduler.schedulers.background import BackgroundScheduler
|
| 91 |
import run_daily_batch
|
| 92 |
import datetime
|