| def register_tools(gr): | |
| from src.tools.map_tools import gm_walking_dir_tool | |
| from src.tools.flixbus_tools import ( | |
| get_city_info_resource, | |
| get_city_info_tool, | |
| search_cities_in_radius_resource, | |
| search_cities_in_radius_tool, | |
| get_tripe_options_list_resource, | |
| get_tripe_options_list_tool, | |
| ) | |
| gr.api(gm_walking_dir_tool) | |
| gr.api(get_city_info_tool) | |
| gr.api(search_cities_in_radius_tool) | |
| gr.api(get_tripe_options_list_tool) | |
| _btn = gr.Button("Hidden Action Button", visible=False) | |
| _html = gr.Code(language="html", max_lines=20, visible=False) | |
| _btn.click(get_city_info_resource, outputs=[_html]) | |
| _btn.click(search_cities_in_radius_resource, outputs=[_html]) | |
| _btn.click(get_tripe_options_list_resource, outputs=[_html]) | |