haramkoo commited on
Commit
b9bfad5
·
1 Parent(s): cc276cb

added examples

Browse files
Files changed (1) hide show
  1. app.py +20 -4
app.py CHANGED
@@ -8,10 +8,11 @@ model = None
8
  tok = None
9
 
10
  # Examples for each models
 
11
  examples = [
12
- ["interview-question-remake", "I have a cat named dolche and he's not very friendly with strangers. I've had him for 9 years now and it has been a pleasure to see him grow closer to us every year."],
13
- ["interview-length-tagged","Today's weather was really nice."],
14
- ["reverse-interview-question", "There are so many incredible musicians out there and so many really compelling big hits this year that it makes for a really interesting way to recap some of those big events."]
15
  ]
16
 
17
  # Descriptions for each models
@@ -53,8 +54,21 @@ st.title("Interview AI Test Website")
53
  if 'button_sent' not in st.session_state:
54
  st.session_state.button_sent = False
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  # Input fields
57
- input = st.text_input('Context') # user inputs context to construct a response (str)
58
 
59
  maxl, minl = st.columns(2)
60
 
@@ -62,6 +76,8 @@ option = st.selectbox(
62
  'Please select a model.',
63
  ('interview-question-remake', 'interview-length-tagged', 'reverse-interview-question'))
64
 
 
 
65
  if option == 'interview-question-remake':
66
  st.write("This is the re-fine-tuned base model for our interview AI. It returns strings terminating in a question mark (?).")
67
  elif option == 'interview-length-tagged':
 
8
  tok = None
9
 
10
  # Examples for each models
11
+ 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
 
54
  if 'button_sent' not in st.session_state:
55
  st.session_state.button_sent = False
56
 
57
+ context_option = st.selecbox(
58
+ 'Feel free to choose one of our premade contexts',
59
+ ('Elon Musk', 'Fashion designer', 'Young entrepreneur')
60
+ )
61
+
62
+ if context_option == 'Elon Musk':
63
+ context_example = examples[0]
64
+ elif context_option == 'Fashion designer':
65
+ context_example = example[1]
66
+ elif context_option == 'Young entrepreneur':
67
+ context_example = example[2]
68
+
69
+
70
  # Input fields
71
+ input = st.text_input('Context', placeholder=context_example) # user inputs context to construct a response (str)
72
 
73
  maxl, minl = st.columns(2)
74
 
 
76
  'Please select a model.',
77
  ('interview-question-remake', 'interview-length-tagged', 'reverse-interview-question'))
78
 
79
+
80
+
81
  if option == 'interview-question-remake':
82
  st.write("This is the re-fine-tuned base model for our interview AI. It returns strings terminating in a question mark (?).")
83
  elif option == 'interview-length-tagged':