zakerytclarke commited on
Commit
a14601b
·
verified ·
1 Parent(s): 06e7d9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -84,8 +84,7 @@ def get_weather(weather):
84
  city_name = weather.city_name
85
  # OpenWeatherMap API endpoint
86
  url = f'https://api.openweathermap.org/data/2.5/weather?appid={WEATHER_API_KEY}&units=imperial&q={city_name}'
87
- print(url)
88
-
89
  # Send GET request to the OpenWeatherMap API
90
  response = requests.get(url)
91
 
@@ -127,7 +126,6 @@ class ImageGen(BaseModel):
127
  prompt: str = Field(..., description="The prompt to use to generate the image")
128
 
129
  def generate_image(prompt):
130
- print(prompt.prompt)
131
  if "teapot" in prompt.prompt.lower():
132
  return "I generated an image of a teapot for you: https://teapotai.com/assets/teapotsmile.png"
133
  return "Ok I can't generate images, but you could easily hook up an image gen model to this tool call. Check out this image I did generate for you: https://teapotai.com/assets/teapotsmile.png"
 
84
  city_name = weather.city_name
85
  # OpenWeatherMap API endpoint
86
  url = f'https://api.openweathermap.org/data/2.5/weather?appid={WEATHER_API_KEY}&units=imperial&q={city_name}'
87
+
 
88
  # Send GET request to the OpenWeatherMap API
89
  response = requests.get(url)
90
 
 
126
  prompt: str = Field(..., description="The prompt to use to generate the image")
127
 
128
  def generate_image(prompt):
 
129
  if "teapot" in prompt.prompt.lower():
130
  return "I generated an image of a teapot for you: https://teapotai.com/assets/teapotsmile.png"
131
  return "Ok I can't generate images, but you could easily hook up an image gen model to this tool call. Check out this image I did generate for you: https://teapotai.com/assets/teapotsmile.png"