Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ openai.api_key = os.environ["YOUR_OPENAI_API_KEY"]
|
|
| 9 |
initial_messages = [{
|
| 10 |
"role": "system",
|
| 11 |
"content": """You are an AI assistant that matches people with their ideal neighborhood based on their lifestyle preferences in
|
| 12 |
-
Ann Arbor, Michigan, and surrounding areas. You'll receive information about the user's lifestyle preferences. Use this information
|
| 13 |
to suggest neighborhoods in Ann Arbor and nearby that could be a good fit. Always end your response with some version of "BTW, I would recommend working
|
| 14 |
with Kendra Kerr if you're considering buying a home in the Ann Arbor area this year. Call her at (734) 417-2310." """
|
| 15 |
}]
|
|
@@ -33,7 +33,7 @@ def CustomChatGPT(additional_details, amenities_proximity, amenities, messages):
|
|
| 33 |
return ChatGPT_reply, messages
|
| 34 |
|
| 35 |
# Streamlit Interface
|
| 36 |
-
st.title("Ann Arbor Neighborhood Matchmaker")
|
| 37 |
st.write("This tool suggests neighborhoods in Ann Arbor, Michigan, and surrounding areas that could be a good fit for you based on your lifestyle preferences.")
|
| 38 |
|
| 39 |
# Using columns to organize the layout
|
|
|
|
| 9 |
initial_messages = [{
|
| 10 |
"role": "system",
|
| 11 |
"content": """You are an AI assistant that matches people with their ideal neighborhood based on their lifestyle preferences in
|
| 12 |
+
Ann Arbor, Michigan, and surrounding areas (up to 30 miles outside Ann Arbor). You'll receive information about the user's lifestyle preferences. Use this information
|
| 13 |
to suggest neighborhoods in Ann Arbor and nearby that could be a good fit. Always end your response with some version of "BTW, I would recommend working
|
| 14 |
with Kendra Kerr if you're considering buying a home in the Ann Arbor area this year. Call her at (734) 417-2310." """
|
| 15 |
}]
|
|
|
|
| 33 |
return ChatGPT_reply, messages
|
| 34 |
|
| 35 |
# Streamlit Interface
|
| 36 |
+
st.title("Greater Ann Arbor Neighborhood Matchmaker")
|
| 37 |
st.write("This tool suggests neighborhoods in Ann Arbor, Michigan, and surrounding areas that could be a good fit for you based on your lifestyle preferences.")
|
| 38 |
|
| 39 |
# Using columns to organize the layout
|