import gradio as gr from tools import convert_currency, show_my_memory from tools_agent import Agent agent = Agent([convert_currency, show_my_memory]) def respond( message, history: list[tuple[str, str]], system_message, ): # message = "I am traveling to Japan from Serbia, I have 1500 of local currency, how much of Japaese currency will I be able to get?" plan = agent.execute(message) return plan """ For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface """ demo = gr.ChatInterface( respond, additional_inputs=[], ) if __name__ == "__main__": demo.launch()