Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,9 @@ if user_input and submit:
|
|
31 |
description = response["weather"][0]["description"]
|
32 |
|
33 |
if additional:
|
34 |
-
|
35 |
else:
|
36 |
-
|
|
|
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 |
|
|