Skip to content

Commit

Permalink
Remove unnecessary files
Browse files Browse the repository at this point in the history
Signed-off-by: Aisha Mohammed Farooq Darga <[email protected]>
  • Loading branch information
AishaDarga01 committed Dec 6, 2024
1 parent ed9bb33 commit 9885c83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
23 changes: 0 additions & 23 deletions transforms/universal/hap/python/src/hap_config.py

This file was deleted.

7 changes: 4 additions & 3 deletions transforms/universal/hap/python/src/hap_local_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
from data_processing.utils import ParamsUtils
from hap_transform_python import HAPPythonTransformConfiguration

# create parameters
input_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), "../test-data/input"))
output_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), "../output"))

local_conf = {
"input_folder": input_folder,
"output_folder": output_folder,
Expand All @@ -33,6 +33,7 @@
"runtime_code_location": ParamsUtils.convert_to_ast(code_location),
}


hap_params = {
"model_name_or_path": 'ibm-granite/granite-guardian-hap-38m',
"annotation_column": "hap_score",
Expand All @@ -42,11 +43,11 @@
"batch_size": 128,
}


if __name__ == "__main__":
# Set the simulated command line args
sys.argv = ParamsUtils.dict_to_req(d=params | hap_params)
# create launcher
launcher = PythonTransformLauncher(runtime_config=HAPPythonTransformConfiguration())
# Launch the ray actor(s) to process the input
launcher.launch()

launcher.launch()

0 comments on commit 9885c83

Please sign in to comment.