Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up
Athira Anilkumar's picture

Athira Anilkumar

athiraanil831
2
·

AI & ML interests

None yet

Organizations

None yet

New activity in agents-course/First_agent_template about 1 year ago

def search_duckduckgo(query:str)-> str: #it's import to specify the return type """#A tool that fetches the air quality in a specified ( region) postal code Args: query: A string asking the question """ try: results = ddg(query, max_results = 1) answer = results[0]["body"] if results else "No result found." return f"Top search result or '{query}': {answer}" except Exception as e: return f"Failed to search DuckDuckGo for '{query}': {str(e)}"

#430 opened about 1 year ago by
athiraanil831

Update app.py

#429 opened about 1 year ago by
athiraanil831
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs