Spaces:
Running
Running
Commit
·
5f35c82
1
Parent(s):
f5c8ef7
fixed file paths
Browse files
app.py
CHANGED
@@ -8,11 +8,9 @@ import smtplib
|
|
8 |
from email.message import EmailMessage
|
9 |
|
10 |
# Make your repo importable (expecting a folder named causal-agent at repo root)
|
11 |
-
|
12 |
-
EXAMPLE_CSV_PATH =
|
13 |
-
|
14 |
-
str(Path(__file__).parent / "data" / "synthetic_data")
|
15 |
-
)
|
16 |
from auto_causal.agent import run_causal_analysis # uses env for provider/model
|
17 |
|
18 |
# -------- LLM config (OpenAI only; key via HF Secrets) --------
|
|
|
8 |
from email.message import EmailMessage
|
9 |
|
10 |
# Make your repo importable (expecting a folder named causal-agent at repo root)
|
11 |
+
REPO_ROOT = Path(__file__).resolve().parents[1] # go up one level from /app/app.py
|
12 |
+
EXAMPLE_CSV_PATH = REPO_ROOT / "data" / "synthetic_data"
|
13 |
+
|
|
|
|
|
14 |
from auto_causal.agent import run_causal_analysis # uses env for provider/model
|
15 |
|
16 |
# -------- LLM config (OpenAI only; key via HF Secrets) --------
|