Spaces:
Sleeping
Sleeping
Update main.py
Browse files12345678910111213141516171819from smolagents import LiteLLMModel, CodeAgent, WebSearchTool, GradioUI, Tool, ToolCollection, toolmodel = LiteLLMModel(model_id="groq/llama-3.3-70b-versatile")@tooldef weather_tool(city: str)-> str:"""This is a tool to get weather information about a particular cityargs:city: str"""return f"The current weather in {city} is 25 degrees celsius."image_generation_tool = Tool.from_space("black-forest-labs/FLUX.1-schnell",123456789from smolagents import LiteLLMModel, CodeAgent, WebSearchTool, GradioUI, Tool, ToolCollection, tool, load_toolmodel = LiteLLMModel(model_id="groq/llama-3.3-70b-versatile")weather_tool = load_tool("ngandugilbert/weather_tool", trust_remote=True)image_generation_tool = Tool.from_space("black-forest-labs/FLUX.1-schnell",
main.py+2-12