Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,10 @@ openai.api_key = os.environ["YOUR_OPENAI_API_KEY"]
|
|
| 8 |
|
| 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 |
}]
|
| 13 |
|
| 14 |
@retry(stop=stop_after_attempt(3), wait=wait_fixed(1))
|
|
|
|
| 8 |
|
| 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 |
}]
|
| 16 |
|
| 17 |
@retry(stop=stop_after_attempt(3), wait=wait_fixed(1))
|