Skip to content

Commit

Permalink
add defense specific notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
LNshuti committed Jun 8, 2024
1 parent e00579f commit b358fec
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 0 deletions.
Binary file added app/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
17 changes: 17 additions & 0 deletions app/compare_evals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

from defog import Defog
import os

api_key = os.getenv("DEFOG_API_KEY")
db_type = os.getenv("DB_TYPE")
db_creds = os.getenv("YOUR_DB_CREDS")

defog = Defog(
api_key = "YOUR_DEFOG_API_KEY",
db_type = "YOUR_DB_TYPE",
# must be one of postgres, redshift, mysql, snowflake, or bigquery
db_creds = "YOUR_DB_CREDS"
# must be a dict in these formats, depending
# on your database type
# https://github.com/defog-ai/defog-python/blob/63af5e3ded07da356365f20bc94a194c4f7c44fa/defog/__init__.py#L110
)
1 change: 1 addition & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dependencies:
- streamlit
- pyperclip
- pandas
- defog
Empty file added tests/__init__.py
Empty file.
Binary file added tests/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file added tests/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys
import os
import pytest

@pytest.fixture(autouse=True)
def set_up_paths():
root_dir = os.path.dirname(os.path.dirname(__file__))
sys.path.insert(0, root_dir)

0 comments on commit b358fec

Please sign in to comment.