Spaces:
No application file
No application file
caraiz2001 commited on
Commit ·
ef78242
1
Parent(s): 297f9af
modify main to include biotools
Browse files- main.py +1 -1
- tools/meta_yml_tools.py +1 -1
main.py
CHANGED
|
@@ -2,7 +2,7 @@ from smolagents import CodeAgent, LiteLLMModel
|
|
| 2 |
from smolagents.tools import ToolCollection
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
-
from tools.meta_yml_tools import get_meta_yml_file, extract_tools_from_meta_json, extract_information_from_meta_json, extract_module_name_description, get_biotools_response
|
| 6 |
|
| 7 |
def main(module_name):
|
| 8 |
meta_yml = get_meta_yml_file(module_name=module_name)
|
|
|
|
| 2 |
from smolagents.tools import ToolCollection
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
+
from tools.meta_yml_tools import get_meta_yml_file, extract_tools_from_meta_json, extract_information_from_meta_json, extract_module_name_description, get_biotools_response, get_biotools_ontology
|
| 6 |
|
| 7 |
def main(module_name):
|
| 8 |
meta_yml = get_meta_yml_file(module_name=module_name)
|
tools/meta_yml_tools.py
CHANGED
|
@@ -138,7 +138,7 @@ def get_biotools_response(tool_name: str) -> list:
|
|
| 138 |
|
| 139 |
def get_biotools_ontology(tool_name, entry_id:str) -> str:
|
| 140 |
"""
|
| 141 |
-
Given a specific entry of the tools list associated to the module, return the biotools ontology ID.
|
| 142 |
|
| 143 |
Args:
|
| 144 |
biotools_id (str): The biotools ID to get the ontology ID for (selected by the agent from the list of tools)
|
|
|
|
| 138 |
|
| 139 |
def get_biotools_ontology(tool_name, entry_id:str) -> str:
|
| 140 |
"""
|
| 141 |
+
Given a specific entry of the tools list associated to the module, return the biotools input ontology ID.
|
| 142 |
|
| 143 |
Args:
|
| 144 |
biotools_id (str): The biotools ID to get the ontology ID for (selected by the agent from the list of tools)
|