Fixed agent
Browse files- README.md +14 -14
- tools/__init__.py +49 -0
README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
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 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
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 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
tools/__init__.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
# tools/__init__.py
|
2 |
"""
|
3 |
Tools package for AI agents
|
@@ -44,3 +45,51 @@ __all__ = [
|
|
44 |
]
|
45 |
|
46 |
__version__ = "1.0.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<<<<<<< HEAD
|
2 |
# tools/__init__.py
|
3 |
"""
|
4 |
Tools package for AI agents
|
|
|
45 |
]
|
46 |
|
47 |
__version__ = "1.0.0"
|
48 |
+
=======
|
49 |
+
# tools/__init__.py
|
50 |
+
"""
|
51 |
+
Tools package for AI agents
|
52 |
+
Provides multimodal, search, math, and YouTube capabilities
|
53 |
+
"""
|
54 |
+
|
55 |
+
from .multimodal_tools import MultimodalTools, analyze_image, extract_text, analyze_transcript
|
56 |
+
from .search_tools import SearchTools, search_web, search_news
|
57 |
+
from .math_tools import MathTools, add, subtract, multiply, divide, power, factorial, square_root, percentage, average, calculate_expression
|
58 |
+
from .youtube_tools import YouTubeTools, get_video_info, download_video, download_audio, get_captions, get_playlist_info
|
59 |
+
|
60 |
+
__all__ = [
|
61 |
+
# Multimodal tools
|
62 |
+
'MultimodalTools',
|
63 |
+
'analyze_image',
|
64 |
+
'extract_text',
|
65 |
+
'analyze_transcript',
|
66 |
+
|
67 |
+
# Search tools
|
68 |
+
'SearchTools',
|
69 |
+
'search_web',
|
70 |
+
'search_news',
|
71 |
+
|
72 |
+
# Math tools
|
73 |
+
'MathTools',
|
74 |
+
'add',
|
75 |
+
'subtract',
|
76 |
+
'multiply',
|
77 |
+
'divide',
|
78 |
+
'power',
|
79 |
+
'factorial',
|
80 |
+
'square_root',
|
81 |
+
'percentage',
|
82 |
+
'average',
|
83 |
+
'calculate_expression',
|
84 |
+
|
85 |
+
# YouTube tools
|
86 |
+
'YouTubeTools',
|
87 |
+
'get_video_info',
|
88 |
+
'download_video',
|
89 |
+
'download_audio',
|
90 |
+
'get_captions',
|
91 |
+
'get_playlist_info'
|
92 |
+
]
|
93 |
+
|
94 |
+
__version__ = "1.0.0"
|
95 |
+
>>>>>>> 632e39537d202ed178facada9170b47ac8ff36bf
|