Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,6 +26,8 @@ def get_stock_price(symbol: str) -> str:
|
|
| 26 |
stock =yf.Ticker(symbol)
|
| 27 |
data = stock.history(period="1d")
|
| 28 |
return(get_stock_price)
|
|
|
|
|
|
|
| 29 |
|
| 30 |
@tool
|
| 31 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 26 |
stock =yf.Ticker(symbol)
|
| 27 |
data = stock.history(period="1d")
|
| 28 |
return(get_stock_price)
|
| 29 |
+
catch Exception as e:
|
| 30 |
+
print("error")
|
| 31 |
|
| 32 |
@tool
|
| 33 |
def get_current_time_in_timezone(timezone: str) -> str:
|