EgorButenko commited on
Commit
da8fb65
·
verified ·
1 Parent(s): 104fa12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -69,10 +69,10 @@ def get_current_time_in_timezone(timezone: str) -> str:
69
  return f"The current local time in {timezone} is: {local_time}"
70
  except Exception as e:
71
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
72
-
73
  @tool
74
  def get_horoscope_api(zodiac_sign: str, period: str = "today") -> str:
75
- """Get horoscope from API for specified zodiac sign.
76
 
77
  Args:
78
  zodiac_sign: Zodiac sign in English (e.g., 'aries', 'taurus', 'gemini')
@@ -80,7 +80,7 @@ def get_horoscope_api(zodiac_sign: str, period: str = "today") -> str:
80
 
81
  Returns:
82
  Horoscope text from API
83
- """
84
  try:
85
  url = f"https://horoscope-app-api.vercel.app/api/v1/get-horoscope/{period}"
86
 
@@ -102,6 +102,7 @@ def get_horoscope_api(zodiac_sign: str, period: str = "today") -> str:
102
  return "Error: Requests library not installed"
103
  except Exception as e:
104
  return f"Error getting horoscope from API: {str(e)}"
 
105
 
106
  final_answer = FinalAnswerTool()
107
 
 
69
  return f"The current local time in {timezone} is: {local_time}"
70
  except Exception as e:
71
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
72
+ """
73
  @tool
74
  def get_horoscope_api(zodiac_sign: str, period: str = "today") -> str:
75
+ Get horoscope from API for specified zodiac sign.
76
 
77
  Args:
78
  zodiac_sign: Zodiac sign in English (e.g., 'aries', 'taurus', 'gemini')
 
80
 
81
  Returns:
82
  Horoscope text from API
83
+
84
  try:
85
  url = f"https://horoscope-app-api.vercel.app/api/v1/get-horoscope/{period}"
86
 
 
102
  return "Error: Requests library not installed"
103
  except Exception as e:
104
  return f"Error getting horoscope from API: {str(e)}"
105
+ """
106
 
107
  final_answer = FinalAnswerTool()
108