nniehaus commited on
Commit
0dfd8da
·
verified ·
1 Parent(s): 972b3f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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
- with col2:
55
- st.markdown("<h2 style='text-align: center; color: black;'>Recommended Neighborhoods ⬇️</h2>", unsafe_allow_html=True)
56
- if generate_button:
57
- messages = initial_messages.copy()
58
- reply, _ = CustomChatGPT(preferences, messages)
 
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