seema28 commited on
Commit
5205af1
·
verified ·
1 Parent(s): f590001

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -104
README.md DELETED
@@ -1,104 +0,0 @@
1
- ---
2
- title: Template Final Assignment
3
- emoji: 🕵🏻‍♂️
4
- colorFrom: indigo
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 5.25.2
8
- app_file: app.py
9
- pinned: false
10
- hf_oauth: true
11
- # optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
12
- hf_oauth_expiration_minutes: 480
13
- ---
14
-
15
- # **GAIA Agent**
16
-
17
- ## **Introduction**
18
-
19
- **GAIA Agent** is an automated system built to tackle and submit solutions for the GAIA benchmark, which tests the capabilities of general-purpose AI agents on diverse and challenging tasks. These tasks require a combination of reasoning, code execution, information retrieval, data interpretation, and multimodal understanding. Powered by advanced language models (such as HuggingFace, and Groq), the agent incorporates a versatile set of tools including browser tools, code interpreter tools, mathematical tools, document processing tools, image processing and generation tools. It is designed for seamless interaction with the benchmark, offering automatic evaluation, submission, and result display through a user-friendly Gradio interface.
20
-
21
- ## **Tools Implementation**
22
-
23
- ### **Browser tools**
24
- - **Wikipedia Search:** Search Wikipedia for a query and return maximum 2 results.
25
- - **Web Search:** Search the web for a query and return maximum 2 results.
26
- - **Arxiv Search:** Search arXiv for a query and return maximum 2 results.
27
-
28
- ### **Code interpreter tools**
29
- - **Execute Multi-programming Language:** Execute code in multiple languages (Python, Bash, SQL, C, Java) and return results.
30
-
31
- ### **Mathematical tools**
32
- - **Multiplication Tools:** Multiplies 2 numbers
33
- - **Addition:** Adds 2 numbers
34
- - **Subtraction:** Subtracts 2 numbers
35
- - **Division:** Divides 2 numbers
36
- - **Modulus:** Get the modulus of 2 numbers
37
- - **Power:** Get the power of 2 numbers
38
- - **Square root:** Get the square root of a number
39
-
40
- ### **Document processing tools**
41
- - **Save and Read File:** Save content to a file and return the path
42
- - **Download a File from URL:** Download a file from a URL and save it to a temporary location
43
- - **Extract Text from Image:** Extract text from an image using OCR library pytesseract (if available)
44
- - **Analyze CSV File:** Analyze a CSV file using pandas and answer a question about it
45
- - **Analyze Excel File:** Analyze an Excel file using pandas and answer a question about it
46
-
47
- ### **Image processing and generation tools**
48
- - **Analyze Image:** Analyze basic properties of an image (size, mode, color analysis, thumbnail preview)
49
- - **Transform Image:** Apply transformations: resize, rotate, crop, flip, brightness, contrast, blur, sharpen, grayscale
50
- - **Draw on Image:** Draw shapes (rectangle, circle, line) or text onto an image
51
- - **Generate Simple Image:** Generate a simple image (gradient, noise, pattern, chart)
52
- - **Combine Images:** Combine multiple images (collage, stack, blend)
53
-
54
-
55
- ## **Installation**
56
- Clone the repository, change the current working directory to this repository's root folder:
57
-
58
- ```
59
- git clone https://github.com/fisherman611/gaia-agent.git
60
- ```
61
- ```
62
- cd gaia-agent
63
- ```
64
-
65
- Install ```requirements.txt``` (replace `3.11` with your installed Python version):
66
-
67
- ```
68
- py -3.11 -m pip install -r requirements.txt
69
- ```
70
-
71
- ## **Environment Variables**
72
- Store some API keys an variables in the `.env` file and load it in your code using `load_dotenv`
73
-
74
- ```
75
- SUPABASE_URL=...
76
- SUPABASE_SERVICE_ROLE_KEY=...
77
- SUPABASE_SERVICE_KEY=...
78
- HUGGINGFACEHUB_API_TOKEN=...
79
- GROQ_API_KEY=...
80
- TAVILY_API_KEY=...
81
- LANGSMITH_API_KEY=...
82
-
83
- LANGSMITH_TRACING=true
84
- LANGSMITH_PROJECT=ai_agent_course
85
- LANGSMITH_ENDPOINT=https://api.smith.langchain.com
86
- ```
87
-
88
- ## **Demo**
89
- To run the application using the command line, use the following command (replace `3.11` with your installed Python version):
90
- ```
91
- py -3.11 app.py
92
- ```
93
- Or run in the [Hugging Face Space](https://huggingface.co/spaces/fisherman611/gaia-agent)
94
- ## **Resources**
95
- - [GAIA Benchmark](https://huggingface.co/spaces/gaia-benchmark/leaderboard)
96
- - [Hugging Face Agents Course](https://huggingface.co/agents-course)
97
- - [Langgraph Agents](https://langchain-ai.github.io/langgraph/)
98
-
99
-
100
- ## **Contributing**
101
- Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
102
-
103
- ## **License**
104
- This project is licensed under the [MIT License](https://mit-license.org/).