wlchee commited on
Commit
acf25e5
·
verified ·
1 Parent(s): 97a5c27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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: