from smolagents import launch_gradio_demo from tool import UploadPostTextTool tool = UploadPostTextTool() launch_gradio_demo(tool)