Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vyokky committed Jul 5, 2024
1 parent 5b61082 commit 6d3ddf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion record_processor/summarizer/summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
Initialize the DemonstrationSummarizer.
:param is_visual: Whether the request is for visual model.
:param prompt_template: The path of the prompt template.
:param example_prompt_template: The path of the example prompt template.
:param demonstration_prompt_template: The path of the example prompt template for demonstration.
:param api_prompt_template: The path of the api prompt template.
"""
self.is_visual = is_visual
Expand Down
4 changes: 1 addition & 3 deletions ufo/automator/app_apis/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ def create_receiver(
clsid = self.__app_root_mappping(app_root_name)

if clsid is None or com_receiver is None:
print_with_color(
f"Warning: Win32COM API is not supported for {process_name}.", "yellow"
)

return None

return com_receiver(app_root_name, process_name, clsid)
Expand Down
2 changes: 1 addition & 1 deletion ufo/prompter/eva_prompter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
self.app_api_prompt_template = None

if configs.get("USE_APIS", False):
self.app_api_prompt_template = self.app_prompter.load_com_api_prompt()
self.app_api_prompt_template = self.app_prompter.load_api_prompt()

def system_prompt_construction(self) -> str:
"""
Expand Down

0 comments on commit 6d3ddf6

Please sign in to comment.