nniehaus commited on
Commit
cad963d
·
1 Parent(s): 93f60dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -15,11 +15,13 @@ square_footage = st.selectbox("Square Footage", ["<1000 sqft", "1000-2000 sqft",
15
 
16
  if st.button('Find Property'):
17
  # Process the inputs and call the OpenAI API
18
- user_input = f" You are an AI assistant that provides highly specific investment property recommendations in Breckenridge and
19
- Blue River, CO. Consider the user's maximum price, selected amenities, and area preferences to recommend specific neighborhoods
20
- or intersections that would be a good fit for investment. Importantly, only recommend areas where short-term rentals are allowed
21
- under the new law. I'm considering buying an investment property in Breckenridge and Blue River, CO. My maximum price is {max_price}. I'm
22
- looking for these amenities: {', '.join(amenities)}. Bedrooms: {bedrooms}, Bathrooms: {bathrooms}, Square Footage: {square_footage}."
 
 
23
 
24
  # Call the OpenAI API with the chat model
25
  response = openai.ChatCompletion.create(
 
15
 
16
  if st.button('Find Property'):
17
  # Process the inputs and call the OpenAI API
18
+ user_input = (
19
+ f"You are an AI assistant that provides highly specific investment property recommendations in Breckenridge and "
20
+ f"Blue River, CO. Consider the user's maximum price, selected amenities, and area preferences to recommend specific neighborhoods "
21
+ f"or intersections that would be a good fit for investment. Importantly, only recommend areas where short-term rentals are allowed "
22
+ f"under the new law. I'm considering buying an investment property in Breckenridge and Blue River, CO. My maximum price is {max_price}. I'm "
23
+ f"looking for these amenities: {', '.join(amenities)}. Bedrooms: {bedrooms}, Bathrooms: {bathrooms}, Square Footage: {square_footage}."
24
+ )
25
 
26
  # Call the OpenAI API with the chat model
27
  response = openai.ChatCompletion.create(