DenverJones commited on
Commit
91623cd
·
verified ·
1 Parent(s): b2d2226

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -15,13 +15,13 @@ client = InferenceClient()
15
  def get_snowfall_forecast(city: str, date: str) -> str:
16
  """
17
  Fetches the expected snowfall in a given city on a specified date.
18
-
19
  Args:
20
- city (str): The name of the city (e.g., 'Denver').
21
- date (str): The date in YYYY-MM-DD format.
22
-
23
  Returns:
24
- str: The expected snowfall in centimeters or an error message.
25
  """
26
  try:
27
  # Geocode the city to get latitude & longitude
@@ -72,4 +72,3 @@ agent = CodeAgent(
72
 
73
  # ✅ Launch the Gradio UI
74
  GradioUI(agent).launch()
75
-
 
15
  def get_snowfall_forecast(city: str, date: str) -> str:
16
  """
17
  Fetches the expected snowfall in a given city on a specified date.
18
+
19
  Args:
20
+ city (str): The name of the city for which snowfall data is required (e.g., "Denver").
21
+ date (str): The date in YYYY-MM-DD format for which the snowfall forecast is needed.
22
+
23
  Returns:
24
+ str: The expected snowfall in centimeters or an error message if data is unavailable.
25
  """
26
  try:
27
  # Geocode the city to get latitude & longitude
 
72
 
73
  # ✅ Launch the Gradio UI
74
  GradioUI(agent).launch()