jamierpatterson commited on
Commit
35a1590
·
verified ·
1 Parent(s): c3d3689

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -22
app.py CHANGED
@@ -1,24 +1,4 @@
1
- def display_solution(solution):
2
- """Displays the solution with lead capture form."""
3
- if solution:
4
- if not solution.startswith("Error") and not solution.startswith("API Error"):
5
- st.markdown("## Your Customized Solution Plan")
6
- st.markdown(solution)
7
-
8
- with st.expander("Want expert help implementing this solution?"):
9
- st.markdown("""
10
- Our growth agency specializes in helping B2B companies implement these solutions and achieve measurable results.
11
-
12
- **Schedule a free 30-minute consultation** to discuss how we can help you overcome this challenge and accelerate your growth.
13
- """)
14
- contact_email = st.text_input("Your Email")
15
- if st.button("Request Consultation"):
16
- if contact_email:
17
- st.success("Thank you! We'll be in touch shortly to schedule your consultation.")
18
- else:
19
- st.warning("Please enter your email address.")
20
- else:
21
- st.error(solution)import streamlit as st
22
  st.set_page_config(page_title="B2B Problem Solver", layout="wide")
23
 
24
  import requests
@@ -305,7 +285,25 @@ Company Description: {company_description}
305
  Company Size: {team_size}
306
  """
307
  solution = generate_problem_solution(business_info, problem_category, problem_description)
308
- display_solution(solution)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
 
310
  else:
311
  website_url = st.text_input("Enter your company website URL*", placeholder="e.g., www.example.com")
 
1
+ import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  st.set_page_config(page_title="B2B Problem Solver", layout="wide")
3
 
4
  import requests
 
285
  Company Size: {team_size}
286
  """
287
  solution = generate_problem_solution(business_info, problem_category, problem_description)
288
+ if solution:
289
+ if not solution.startswith("Error") and not solution.startswith("API Error"):
290
+ st.markdown("## Your Customized Solution Plan")
291
+ st.markdown(solution)
292
+
293
+ with st.expander("Want expert help implementing this solution?"):
294
+ st.markdown("""
295
+ Our growth agency specializes in helping B2B companies implement these solutions and achieve measurable results.
296
+
297
+ **Schedule a free 30-minute consultation** to discuss how we can help you overcome this challenge and accelerate your growth.
298
+ """)
299
+ contact_email = st.text_input("Your Email")
300
+ if st.button("Request Consultation"):
301
+ if contact_email:
302
+ st.success("Thank you! We'll be in touch shortly to schedule your consultation.")
303
+ else:
304
+ st.warning("Please enter your email address.")
305
+ else:
306
+ st.error(solution)
307
 
308
  else:
309
  website_url = st.text_input("Enter your company website URL*", placeholder="e.g., www.example.com")