Skip to content

Commit

Permalink
update import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Nogues committed May 16, 2024
1 parent a17f4a0 commit f2a5e7e
Show file tree
Hide file tree
Showing 2 changed files with 1,009 additions and 12 deletions.
8 changes: 4 additions & 4 deletions examples/test_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"import os\n",
"import sys\n",
"\n",
"dir_path = os.path.dirname(os.path.realpath(\"./\")) + \"/fair_housing_guardrail\"\n",
"dir_path = os.path.dirname(os.path.realpath(\"./\"))\n",
"\n",
"if dir_path not in sys.path:\n",
" sys.path.insert(1, dir_path)"
Expand All @@ -26,8 +26,8 @@
"source": [
"import pandas as pd\n",
"\n",
"from utils.helper import load_config, load_dataset, load_tokenizer\n",
"from utils.fair_housing_classification import FairHousingGuardrailClassification"
"from fair_housing_guardrail.utils.helper import load_config, load_dataset, load_tokenizer\n",
"from fair_housing_guardrail.utils.fair_housing_classification import FairHousingGuardrailClassification"
]
},
{
Expand Down Expand Up @@ -81,7 +81,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit f2a5e7e

Please sign in to comment.