Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,41 +1,111 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
# Function to generate the business proposal
|
| 4 |
-
def generate_business_proposal(company_name, recipient_name, product_service, benefits, pricing, timeline, contact_info):
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
-
**Sincerely,**
|
| 34 |
-
[Your Name]
|
| 35 |
-
[Your Job Title]
|
| 36 |
-
{company_name}
|
| 37 |
-
{contact_info}
|
| 38 |
-
"""
|
| 39 |
return proposal
|
| 40 |
|
| 41 |
|
|
@@ -54,10 +124,13 @@ def main():
|
|
| 54 |
timeline = st.text_input("Timeline for Implementation:")
|
| 55 |
contact_info = st.text_input("Your Contact Information:")
|
| 56 |
|
|
|
|
|
|
|
|
|
|
| 57 |
if st.button("Generate Proposal"):
|
| 58 |
if company_name and recipient_name and product_service and benefits and pricing and timeline and contact_info:
|
| 59 |
proposal = generate_business_proposal(
|
| 60 |
-
company_name, recipient_name, product_service, benefits, pricing, timeline, contact_info
|
| 61 |
)
|
| 62 |
|
| 63 |
st.subheader("Generated Proposal:")
|
|
@@ -75,4 +148,3 @@ def main():
|
|
| 75 |
|
| 76 |
if __name__ == "__main__":
|
| 77 |
main()
|
| 78 |
-
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# Function to generate the business proposal with style formatting
|
| 4 |
+
def generate_business_proposal(company_name, recipient_name, product_service, benefits, pricing, timeline, contact_info, style):
|
| 5 |
+
if style == "Formal":
|
| 6 |
+
proposal = f"""
|
| 7 |
+
Subject: Formal Proposal for {product_service} Collaboration
|
| 8 |
|
| 9 |
+
Dear {recipient_name},
|
| 10 |
|
| 11 |
+
I hope this message finds you in the best of health and spirits. I am writing to formally propose a business collaboration that I believe will be mutually beneficial to both {company_name} and your esteemed organization.
|
| 12 |
|
| 13 |
+
**Introduction:**
|
| 14 |
+
{company_name} is a leading provider of {product_service}. We are excited to offer you the opportunity to collaborate with us to meet your organization's needs with our high-quality solutions.
|
| 15 |
|
| 16 |
+
**Proposed Solution/Offer:**
|
| 17 |
+
Our {product_service} provides the following key benefits:
|
| 18 |
+
- {benefits}
|
| 19 |
|
| 20 |
+
**Pricing/Cost:**
|
| 21 |
+
We offer our solution at a cost of {pricing}. This price reflects the value and quality of our offering.
|
| 22 |
|
| 23 |
+
**Timeline:**
|
| 24 |
+
The implementation of this solution can be completed within {timeline}, starting immediately upon confirmation.
|
| 25 |
|
| 26 |
+
**Why {recipient_name} Should Consider This Proposal:**
|
| 27 |
+
We believe that our solution will provide significant value to your organization, and {company_name} has a proven track record of successful collaborations in the industry.
|
| 28 |
|
| 29 |
+
**Next Steps:**
|
| 30 |
+
If you are interested in discussing this proposal further, please do not hesitate to contact me at your earliest convenience.
|
| 31 |
|
| 32 |
+
I look forward to your response.
|
| 33 |
+
|
| 34 |
+
Sincerely,
|
| 35 |
+
[Your Name]
|
| 36 |
+
[Your Job Title]
|
| 37 |
+
{company_name}
|
| 38 |
+
{contact_info}
|
| 39 |
+
"""
|
| 40 |
+
elif style == "Casual":
|
| 41 |
+
proposal = f"""
|
| 42 |
+
Subject: Proposal for {product_service} Collaboration
|
| 43 |
+
|
| 44 |
+
Hey {recipient_name}!
|
| 45 |
+
|
| 46 |
+
I hope you're doing well! I'm reaching out to share an exciting business opportunity that I believe could be a great fit for both {company_name} and your organization.
|
| 47 |
+
|
| 48 |
+
**Here’s what we offer:**
|
| 49 |
+
Our {product_service} offers these awesome benefits:
|
| 50 |
+
- {benefits}
|
| 51 |
+
|
| 52 |
+
**Pricing:**
|
| 53 |
+
We can provide this at a price of {pricing}, which is a solid deal for the value it brings.
|
| 54 |
+
|
| 55 |
+
**Timeline:**
|
| 56 |
+
We can get things started and wrap it up within {timeline}, depending on your needs.
|
| 57 |
+
|
| 58 |
+
**Why this is a great fit:**
|
| 59 |
+
{company_name} has a great history of helping companies like yours, and we know our {product_service} can help take things to the next level.
|
| 60 |
+
|
| 61 |
+
**What’s next:**
|
| 62 |
+
If you're interested, just let me know and we can chat more!
|
| 63 |
+
|
| 64 |
+
Looking forward to hearing from you.
|
| 65 |
+
|
| 66 |
+
Cheers,
|
| 67 |
+
[Your Name]
|
| 68 |
+
[Your Job Title]
|
| 69 |
+
{company_name}
|
| 70 |
+
{contact_info}
|
| 71 |
+
"""
|
| 72 |
+
elif style == "Business":
|
| 73 |
+
proposal = f"""
|
| 74 |
+
Subject: Proposal for {product_service} Collaboration
|
| 75 |
+
|
| 76 |
+
Dear {recipient_name},
|
| 77 |
+
|
| 78 |
+
I hope this message finds you well. I am writing to formally propose a collaboration between {company_name} and your organization, specifically in the area of {product_service}.
|
| 79 |
+
|
| 80 |
+
**Overview:**
|
| 81 |
+
{company_name} specializes in providing top-tier {product_service}, and we are eager to offer you a comprehensive solution that fits your needs.
|
| 82 |
+
|
| 83 |
+
**Key Benefits of Our Proposal:**
|
| 84 |
+
- {benefits}
|
| 85 |
+
|
| 86 |
+
**Pricing Details:**
|
| 87 |
+
The total cost for this solution is {pricing}, which we believe is highly competitive considering the value provided.
|
| 88 |
+
|
| 89 |
+
**Implementation Timeline:**
|
| 90 |
+
We anticipate completing the implementation within {timeline}, contingent upon your approval.
|
| 91 |
+
|
| 92 |
+
**Why Partner with {company_name}:**
|
| 93 |
+
With years of experience and successful case studies in your industry, {company_name} is uniquely positioned to help your organization achieve its goals.
|
| 94 |
+
|
| 95 |
+
**Next Steps:**
|
| 96 |
+
Should you find this proposal of interest, I would be happy to schedule a call or meeting to discuss further.
|
| 97 |
+
|
| 98 |
+
I look forward to your positive response.
|
| 99 |
+
|
| 100 |
+
Best regards,
|
| 101 |
+
[Your Name]
|
| 102 |
+
[Your Job Title]
|
| 103 |
+
{company_name}
|
| 104 |
+
{contact_info}
|
| 105 |
+
"""
|
| 106 |
+
else:
|
| 107 |
+
proposal = "Invalid style selected."
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
return proposal
|
| 110 |
|
| 111 |
|
|
|
|
| 124 |
timeline = st.text_input("Timeline for Implementation:")
|
| 125 |
contact_info = st.text_input("Your Contact Information:")
|
| 126 |
|
| 127 |
+
# Add option to select style
|
| 128 |
+
style = st.selectbox("Choose the proposal style:", ["Formal", "Casual", "Business"])
|
| 129 |
+
|
| 130 |
if st.button("Generate Proposal"):
|
| 131 |
if company_name and recipient_name and product_service and benefits and pricing and timeline and contact_info:
|
| 132 |
proposal = generate_business_proposal(
|
| 133 |
+
company_name, recipient_name, product_service, benefits, pricing, timeline, contact_info, style
|
| 134 |
)
|
| 135 |
|
| 136 |
st.subheader("Generated Proposal:")
|
|
|
|
| 148 |
|
| 149 |
if __name__ == "__main__":
|
| 150 |
main()
|
|
|