Create user_input.py
Browse files- user_input.py +33 -0
user_input.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
def get_user_input():
|
| 4 |
+
st.subheader("Company Details")
|
| 5 |
+
|
| 6 |
+
project_description = st.text_area("Project and Mission Description", height=100)
|
| 7 |
+
|
| 8 |
+
industry_options = [
|
| 9 |
+
"Technology", "Healthcare", "Finance", "Education", "E-commerce",
|
| 10 |
+
"Artificial Intelligence", "Blockchain", "Sustainability", "Other"
|
| 11 |
+
]
|
| 12 |
+
industry = st.selectbox("Industry", industry_options)
|
| 13 |
+
|
| 14 |
+
market = st.text_input("Target Market")
|
| 15 |
+
location = st.text_input("Company Location")
|
| 16 |
+
|
| 17 |
+
st.subheader("Founders and Team Information")
|
| 18 |
+
num_founders = st.number_input("Number of Founders", min_value=1, max_value=10, value=1)
|
| 19 |
+
|
| 20 |
+
founders_info = []
|
| 21 |
+
for i in range(num_founders):
|
| 22 |
+
st.write(f"Founder {i+1}")
|
| 23 |
+
name = st.text_input(f"Name", key=f"founder_name_{i}")
|
| 24 |
+
background = st.text_area(f"Background and Key Strengths", height=50, key=f"founder_background_{i}")
|
| 25 |
+
founders_info.append({"name": name, "background": background})
|
| 26 |
+
|
| 27 |
+
return {
|
| 28 |
+
"project_description": project_description,
|
| 29 |
+
"industry": industry,
|
| 30 |
+
"market": market,
|
| 31 |
+
"location": location,
|
| 32 |
+
"founders_info": founders_info
|
| 33 |
+
}
|