Spaces:
Running
Running
Commit
·
b7dc123
1
Parent(s):
2e1aea3
fixed file paths
Browse files
app.py
CHANGED
|
@@ -8,9 +8,11 @@ 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 |
from auto_causal.agent import run_causal_analysis # uses env for provider/model
|
| 15 |
|
| 16 |
# -------- 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 |
+
sys.path.append(str(Path(__file__).parent / "causal-agent"))
|
| 12 |
+
EXAMPLE_CSV_PATH = os.getenv(
|
| 13 |
+
"EXAMPLE_CSV_PATH",
|
| 14 |
+
str(Path(__file__).parent )
|
| 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) --------
|