IshmamF commited on
Commit
02a0a1b
·
verified ·
1 Parent(s): 2630f42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,9 +31,9 @@ if user_input and submit:
31
  description = response["weather"][0]["description"]
32
 
33
  if additional:
34
- image_url = generate_image(city, weather, country, description, user_input, additional)
35
  else:
36
- image_url = generate_image(city, weather, country, description, user_input)
 
37
  st.image(image_url, caption=f"{weather} at {user_input} in {location},{country}")
38
 
39
-
 
31
  description = response["weather"][0]["description"]
32
 
33
  if additional:
34
+ prompt = f"{additional} at {user_input} in {location},{country} with the weather consisting of {weather} and {description}"
35
  else:
36
+ prompt = f"{user_input} in {location},{country} with the weather consisting of {weather} and {description}"
37
+ image_url = generate_image(prompt)
38
  st.image(image_url, caption=f"{weather} at {user_input} in {location},{country}")
39