Spaces:
Build error
Build error
added examples
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ context_example = ''
|
|
12 |
examples = [
|
13 |
"Well, I was born in South Africa, lived there until I was 17. Came to North America of my own accord, against my parent’s wishes. And was in Canada for a few years. I started school there which is where I met my wife. Transferred down to the University of Pennsylvania and got a degree in physics, degree in business at Wharton. Came out to California with the intent of doing a PHD in the material science and physics [unintelligible] with an eye towards using that as an energy storage unit for electric vehicles. I ended up deferring that graduate work to start a couple to start a couple of area companies, one of which people have heard about, such as Pay Pal.",
|
14 |
"Hi my name is Maria Sanchez, and I was born in Japan. I lived there for 20 years and moved out to the United States for college. I studied graphic design and later realized that my true passion was in fashion. It's lovely to see amazing models wearing my collection this fall, can't wait to show it to you guys soon. ",
|
15 |
-
"I moved from Indiana to California when I was 19 to pursue my career as an young entrepreneur with a small loan of million dollars. My first start up was Blindr, where we sold blinders that auto adjusts depending on the time of the day. It was revolutionary, in only 2 years, we were able to accumulate 10 million customers and gain attraction internationally. We are planning to go further beyond this year with Blindr 2.0 where not only auto adjusts your blinders, but it also detects intruders who are violating your privacy at any time. "
|
|
|
16 |
]
|
17 |
|
18 |
# Descriptions for each models
|
@@ -58,7 +59,7 @@ maxl, minl = st.columns(2)
|
|
58 |
|
59 |
context_option = minl.selectbox(
|
60 |
'Feel free to choose one of our premade contexts',
|
61 |
-
('Select one','Elon Musk', 'Fashion designer', 'Young entrepreneur')
|
62 |
)
|
63 |
|
64 |
if context_option == 'Select one':
|
@@ -69,7 +70,8 @@ elif context_option == 'Fashion designer':
|
|
69 |
context_example = examples[1]
|
70 |
elif context_option == 'Young entrepreneur':
|
71 |
context_example = examples[2]
|
72 |
-
|
|
|
73 |
|
74 |
option = maxl.selectbox(
|
75 |
'Please select a model.',
|
|
|
12 |
examples = [
|
13 |
"Well, I was born in South Africa, lived there until I was 17. Came to North America of my own accord, against my parent’s wishes. And was in Canada for a few years. I started school there which is where I met my wife. Transferred down to the University of Pennsylvania and got a degree in physics, degree in business at Wharton. Came out to California with the intent of doing a PHD in the material science and physics [unintelligible] with an eye towards using that as an energy storage unit for electric vehicles. I ended up deferring that graduate work to start a couple to start a couple of area companies, one of which people have heard about, such as Pay Pal.",
|
14 |
"Hi my name is Maria Sanchez, and I was born in Japan. I lived there for 20 years and moved out to the United States for college. I studied graphic design and later realized that my true passion was in fashion. It's lovely to see amazing models wearing my collection this fall, can't wait to show it to you guys soon. ",
|
15 |
+
"I moved from Indiana to California when I was 19 to pursue my career as an young entrepreneur with a small loan of million dollars. My first start up was Blindr, where we sold blinders that auto adjusts depending on the time of the day. It was revolutionary, in only 2 years, we were able to accumulate 10 million customers and gain attraction internationally. We are planning to go further beyond this year with Blindr 2.0 where not only auto adjusts your blinders, but it also detects intruders who are violating your privacy at any time. ",
|
16 |
+
"I think things out well. When I speak, I speak with conviction. If I feel like it's something that best suits me and my person, I deal with it. I say it. I have no problem speaking out publicly about issues. But for personal things, and for things about personal selfishness, or wanting more money, I don't do that. Once I give my word, that's it. I don't go back to renegotiate. I don't renegotiate my contracts."
|
17 |
]
|
18 |
|
19 |
# Descriptions for each models
|
|
|
59 |
|
60 |
context_option = minl.selectbox(
|
61 |
'Feel free to choose one of our premade contexts',
|
62 |
+
('Select one','Elon Musk', 'Fashion designer', 'Young entrepreneur', 'Michael Jordan')
|
63 |
)
|
64 |
|
65 |
if context_option == 'Select one':
|
|
|
70 |
context_example = examples[1]
|
71 |
elif context_option == 'Young entrepreneur':
|
72 |
context_example = examples[2]
|
73 |
+
else:
|
74 |
+
context_example = examples[3]
|
75 |
|
76 |
option = maxl.selectbox(
|
77 |
'Please select a model.',
|