Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 20 |
class CurrentTimeTool(Tool):
|
| 21 |
def __init__(self):
|
| 22 |
super().__init__()
|
| 23 |
-
self.name="
|
| 24 |
self.description = "Fetches the current local time in a specified timezone. Input should be a timezone string like 'America/New_York'."
|
| 25 |
self.inputs = {
|
| 26 |
"timezone": {
|
|
@@ -42,7 +42,7 @@ class CurrentTimeTool(Tool):
|
|
| 42 |
class WikipediaTool(Tool):
|
| 43 |
def __init__(self):
|
| 44 |
super().__init__()
|
| 45 |
-
self.name="
|
| 46 |
self.description = "Searches Wikipedia for information. Input should be a search query. Optional parameter 'sentences' (default 2) controls summary length."
|
| 47 |
self.inputs = {
|
| 48 |
"query": {
|
|
|
|
| 20 |
class CurrentTimeTool(Tool):
|
| 21 |
def __init__(self):
|
| 22 |
super().__init__()
|
| 23 |
+
self.name="get_current_time"
|
| 24 |
self.description = "Fetches the current local time in a specified timezone. Input should be a timezone string like 'America/New_York'."
|
| 25 |
self.inputs = {
|
| 26 |
"timezone": {
|
|
|
|
| 42 |
class WikipediaTool(Tool):
|
| 43 |
def __init__(self):
|
| 44 |
super().__init__()
|
| 45 |
+
self.name="wikipedia_search"
|
| 46 |
self.description = "Searches Wikipedia for information. Input should be a search query. Optional parameter 'sentences' (default 2) controls summary length."
|
| 47 |
self.inputs = {
|
| 48 |
"query": {
|