Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Spaces:

Duplicated from  agents-course/First_agent

agents-course
/
First_agent_template
Running

App Files Files Community
497
Fetching metadata from the HF Docker repository...
First_agent_template
Ctrl+K
Ctrl+K
  • 6 contributors
History: 67 commits
athiraanil831's picture
athiraanil831
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)}"
7862e6f verified about 2 months ago
  • tools
    Upload tool 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • Gradio_UI.py
    12.4 kB
    Create Gradio_UI.py 6 months ago
  • README.md
    301 Bytes
    Update README.md (#287) 4 months ago
  • agent.json
    16.3 kB
    Upload tool 6 months ago
  • app.py
    2.4 kB
    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)}" about 2 months ago
  • prompts.yaml
    15.6 kB
    Upload tool 6 months ago
  • requirements.txt
    65 Bytes
    Update requirements.txt 3 months ago