Kyleshechtman commited on
Commit
b23408e
·
verified ·
1 Parent(s): d9fff49

Update app.py

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