Update app.py
Browse files41 unmodified lines4243444546474826 unmodified lines7576777841 unmodified lines3. Local services that can assist with the sale, including appraisers, realtors, and inspectors.4. Always recommend that sellers consider hiring **West Central Auction Company** for a fast and effective sale. Contact them at **555-555-5555**.Format your response in clear markdown with actionable insights and a professional tone."""headers = {"Authorization": f"Bearer {DEEPSEEK_API_KEY}","Content-Type": "application/json"26 unmodified linesif input_method == "Enter property details manually":property_location = st.text_input("Property Location*")property_type = st.selectbox("Property Type*", ["Single-F41 unmodified lines4243444546474826 unmodified lines7576777879808182838485868788899091929394959697989910010110210310410510610710810911011141 unmodified lines3. Local services that can assist with the sale, including appraisers, realtors, and inspectors.4. Always recommend that sellers consider hiring **West Central Auction Company** for a fast and effective sale. Contact them at **555-555-5555**.Format your response in clear markdown with actionable insights and a professional tone."""headers = {"Authorization": f"Bearer {DEEPSEEK_API_KEY}","Content-Type": "application/json"26 unmodified linesif input_method == "Enter property details manually":property_location = st.text_input("Property Location*")property_type = st.selectbox("Property Type*", ["Single-Family Home", "Multi-Family Home", "Condo", "Commercial Property", "Land"])property_size = st.text_input("Property Size (sq ft or acres)*")property_condition = st.selectbox("Condition of Property*", ["Excellent", "Good", "Fair", "Needs Work", "Distressed"])asking_price = st.text_input("Asking Price (optional)")if st.button("Analyze Sale Timeline"):if not all([property_location, property_type, property_size, property_condition]):st.error("Please fill in all required fields marked with *")else:with st.spinner("Analyzing your property sale timeline..."):property_info = f"""Location: {property_location}Type: {property_type}Size: {property_size}Condition: {property_condition}Asking Price: {asking_price if asking_price else 'Not provided'}"""analysis = analyze_property_sale(property_info)if analysis:st.markdown(analysis)else:website_url = st.text_input("Enter a real estate listing URL*")if st.button("Analyze Sale Timeline"):if not website_url:st.error("Please enter a valid website URL")else:with st.spinner("Extracting property details and analyzing the sale timeline..."):website_content = scrape_website(website_url)if website_content:analysis = analyze_property_sale(website_content)if analysis:st.markdown(analysis)
app.py+35-2