Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,9 @@ def market_sentiment_story(index:str)-> str: #it's import to specify the return
|
|
| 42 |
f"which is a change of {percent:.2f}% from the previous close. "
|
| 43 |
f"Write a short, realistic story that explains why it moved in this direction."
|
| 44 |
)
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
@tool
|
| 47 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 42 |
f"which is a change of {percent:.2f}% from the previous close. "
|
| 43 |
f"Write a short, realistic story that explains why it moved in this direction."
|
| 44 |
)
|
| 45 |
+
except Exception as e:
|
| 46 |
+
return f"Error: {str(e)}"
|
| 47 |
+
|
| 48 |
|
| 49 |
@tool
|
| 50 |
def get_current_time_in_timezone(timezone: str) -> str:
|