Update app.py
Browse files
app.py
CHANGED
@@ -51,11 +51,12 @@ with col1:
|
|
51 |
preferences = st.text_area("Describe your ideal neighborhood", placeholder="E.g., family-friendly, good schools, near parks, vibrant nightlife, public transportation, etc.")
|
52 |
generate_button = st.button('Find Neighborhoods')
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
59 |
st.write(reply)
|
60 |
|
61 |
# Add map integration
|
|
|
51 |
preferences = st.text_area("Describe your ideal neighborhood", placeholder="E.g., family-friendly, good schools, near parks, vibrant nightlife, public transportation, etc.")
|
52 |
generate_button = st.button('Find Neighborhoods')
|
53 |
|
54 |
+
if generate_button:
|
55 |
+
messages = initial_messages.copy()
|
56 |
+
reply, _ = CustomChatGPT(preferences, messages)
|
57 |
+
|
58 |
+
with col2:
|
59 |
+
st.markdown("<h2 style='text-align: center; color: black;'>Recommended Neighborhoods ⬇️</h2>", unsafe_allow_html=True)
|
60 |
st.write(reply)
|
61 |
|
62 |
# Add map integration
|