Spaces:
Runtime error
Runtime error
Update crewai_agent.py
Browse files13 unmodified lines14151617181920103 unmodified lines12412512612712812913 unmodified linesfrom langchain.chains import LLMChain# Load environment variablesload_dotenv()@tooldef calculator_tool(operation: str, a: float, b: float) -> str:103 unmodified linesmodel="gemini-2.0-flash",temperature=0,max_tokens=2048)elif provider == "huggingface":return ChatHuggingFace(13 unmodified lines14151617181920212223103 unmodified lines12712812913013113213313 unmodified linesfrom langchain.chains import LLMChain# Load environment variablesGOOGLE_API_KEY = os.getenv('GOOGLE_API_KEY')HUGGINGFACE_API_TOKEN= os.getenv('HUGGINGFACE_API_TOKEN')TAVILY_API_KEY = os.getenv('TAVILY_API_KEY')@tooldef calculator_tool(operation: str, a: float, b: float) -> str:103 unmodified linesmodel="gemini-2.0-flash",temperature=0,max_tokens=2048)elif provider == "huggingface":return ChatHuggingFace(
crewai_agent.py+5-1