Skip to content

Commit

Permalink
Fix passing incorrect string
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Aug 23, 2024
1 parent 1265b04 commit 030256c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ontogpt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,11 @@ def run_multilingual_analysis(
"""Call the multilingual analysis function.
Requires an input data directory and an output directory.
Example:
ontogpt run-multilingual-analysis -m gpt-4o en_test/ test_multiling_out/
"""
template = "all_disease_grounding"

Expand All @@ -1535,7 +1540,7 @@ def run_multilingual_analysis(
logging.info(f"Processing {i} of {len(inputdict)}: {filename}")
try:
results, output_path, ke = multilingual_analysis(
prompt=input_entry,
prompt=inputdict[input_entry],
filename=filename,
output_directory=output_directory,
model=model,
Expand Down
1 change: 1 addition & 0 deletions src/ontogpt/utils/multilingual.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def multilingual_analysis(

try:
gpt_diagnosis = ai.complete(prompt)
print(gpt_diagnosis)
except Exception as e:
raise Exception(f"Error in completion: {e}")

Expand Down

0 comments on commit 030256c

Please sign in to comment.