Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ class CurrentTimeTool(Tool):
|
|
| 22 |
super().__init__()
|
| 23 |
self.name="gettime"
|
| 24 |
self.description = "Fetches the current local time in a specified timezone. Input should be a timezone string like 'America/New_York'."
|
| 25 |
-
|
| 26 |
"timezone": {
|
| 27 |
"type": "string",
|
| 28 |
"description": "Timezone string (e.g., 'America/New_York')"
|
|
@@ -42,7 +42,7 @@ class WikipediaTool(Tool):
|
|
| 42 |
super().__init__()
|
| 43 |
self.name="searchwiki"
|
| 44 |
self.description = "Searches Wikipedia for information. Input should be a search query. Optional parameter 'sentences' (default 2) controls summary length."
|
| 45 |
-
|
| 46 |
"query": {
|
| 47 |
"type": "string",
|
| 48 |
"description": "Search query"
|
|
|
|
| 22 |
super().__init__()
|
| 23 |
self.name="gettime"
|
| 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": {
|
| 27 |
"type": "string",
|
| 28 |
"description": "Timezone string (e.g., 'America/New_York')"
|
|
|
|
| 42 |
super().__init__()
|
| 43 |
self.name="searchwiki"
|
| 44 |
self.description = "Searches Wikipedia for information. Input should be a search query. Optional parameter 'sentences' (default 2) controls summary length."
|
| 45 |
+
self.inputs = {
|
| 46 |
"query": {
|
| 47 |
"type": "string",
|
| 48 |
"description": "Search query"
|