Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
@tool
|
36 |
-
def
|
37 |
"""
|
38 |
A tool that analyze stock data.
|
39 |
Args:
|
40 |
-
ticker: A string representing ticker
|
41 |
"""
|
42 |
import os
|
43 |
from datetime import datetime, timedelta
|
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
@tool
|
36 |
+
def stock_data(ticker: str) -> dict: # type: ignore[type-arg]
|
37 |
"""
|
38 |
A tool that analyze stock data.
|
39 |
Args:
|
40 |
+
ticker: A string representing stock ticker(e.g., 'AMD')
|
41 |
"""
|
42 |
import os
|
43 |
from datetime import datetime, timedelta
|