Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,8 @@ class CurrentTimeTool(Tool):
|
|
| 28 |
"description": "Timezone string (e.g., 'America/New_York')"
|
| 29 |
}
|
| 30 |
}
|
|
|
|
|
|
|
| 31 |
def __call__(self, timezone: str) -> str:
|
| 32 |
try:
|
| 33 |
tz = pytz.timezone(timezone)
|
|
@@ -53,6 +55,7 @@ class WikipediaTool(Tool):
|
|
| 53 |
"default": 2
|
| 54 |
}
|
| 55 |
}
|
|
|
|
| 56 |
|
| 57 |
def __call__(self, query: str, sentences: int = 2) -> str:
|
| 58 |
try:
|
|
|
|
| 28 |
"description": "Timezone string (e.g., 'America/New_York')"
|
| 29 |
}
|
| 30 |
}
|
| 31 |
+
self.output_type="string"
|
| 32 |
+
|
| 33 |
def __call__(self, timezone: str) -> str:
|
| 34 |
try:
|
| 35 |
tz = pytz.timezone(timezone)
|
|
|
|
| 55 |
"default": 2
|
| 56 |
}
|
| 57 |
}
|
| 58 |
+
self.output_type="string"
|
| 59 |
|
| 60 |
def __call__(self, query: str, sentences: int = 2) -> str:
|
| 61 |
try:
|