Skip to content

Commit

Permalink
[fix] add missing models in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrianC committed Dec 20, 2024
1 parent 8f03cd0 commit c6bb767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from edenai_apis.utils.files import FileInfo, FileWrapper




def object_detection_arguments(provider_name: str) -> Dict:
feature_path = os.path.dirname(os.path.dirname(__file__))

Expand All @@ -25,4 +23,4 @@ def object_detection_arguments(provider_name: str) -> Dict:
mediainfo(image_path).get("channels", "1"),
)
file_wrapper = FileWrapper(image_path, "", file_info)
return {"file": file_wrapper, "settings": {}}
return {"file": file_wrapper, "settings": {"clarifai": "general-image-detection"}}
6 changes: 5 additions & 1 deletion edenai_apis/features/text/summarize/summarize_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ def summarize_arguments(provider_name: str):
"output_sentences": 3,
"text": "Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004.",
"language": "en",
"settings": {"openai": "gpt-4", "nlpcloud": "finetuned-llama-2-70b"},
"settings": {
"openai": "gpt-4",
"nlpcloud": "finetuned-llama-2-70b",
"anthropic": "claude-v2",
},
}

0 comments on commit c6bb767

Please sign in to comment.