Spaces:
Build error
Build error
added examples
Browse files
app.py
CHANGED
@@ -54,7 +54,9 @@ st.title("Interview AI Test Website")
|
|
54 |
if 'button_sent' not in st.session_state:
|
55 |
st.session_state.button_sent = False
|
56 |
|
57 |
-
|
|
|
|
|
58 |
'Feel free to choose one of our premade contexts',
|
59 |
('Select one','Elon Musk', 'Fashion designer', 'Young entrepreneur')
|
60 |
)
|
@@ -68,24 +70,24 @@ elif context_option == 'Fashion designer':
|
|
68 |
elif context_option == 'Young entrepreneur':
|
69 |
context_example = examples[2]
|
70 |
|
71 |
-
|
72 |
-
option =
|
73 |
'Please select a model.',
|
74 |
-
('
|
75 |
|
76 |
|
77 |
|
78 |
-
if option == '
|
79 |
st.write("This is the re-fine-tuned base model for our interview AI. It returns strings terminating in a question mark (?).")
|
80 |
-
elif option == '
|
81 |
st.write("This is a length-tagged version of our interview AI. You can specify how long its responses should be (ranges of multiples of 10)")
|
82 |
-
elif option == '
|
83 |
st.write("This model asks a question that would have resulted in the context you provide (a.k.a. it traverses backward through the interview)")
|
84 |
|
85 |
# Input fields
|
86 |
input = st.text_input('Context', value=context_example) # user inputs context to construct a response (str)
|
87 |
|
88 |
-
|
89 |
|
90 |
|
91 |
|
|
|
54 |
if 'button_sent' not in st.session_state:
|
55 |
st.session_state.button_sent = False
|
56 |
|
57 |
+
maxl, minl = st.columns(2)
|
58 |
+
|
59 |
+
context_option = maxl.selectbox(
|
60 |
'Feel free to choose one of our premade contexts',
|
61 |
('Select one','Elon Musk', 'Fashion designer', 'Young entrepreneur')
|
62 |
)
|
|
|
70 |
elif context_option == 'Young entrepreneur':
|
71 |
context_example = examples[2]
|
72 |
|
73 |
+
|
74 |
+
option = minl.selectbox(
|
75 |
'Please select a model.',
|
76 |
+
('Base model', 'Lengthed model', 'Reverse model'))
|
77 |
|
78 |
|
79 |
|
80 |
+
if option == 'Base model':
|
81 |
st.write("This is the re-fine-tuned base model for our interview AI. It returns strings terminating in a question mark (?).")
|
82 |
+
elif option == 'Lengthed model':
|
83 |
st.write("This is a length-tagged version of our interview AI. You can specify how long its responses should be (ranges of multiples of 10)")
|
84 |
+
elif option == 'Reverse model':
|
85 |
st.write("This model asks a question that would have resulted in the context you provide (a.k.a. it traverses backward through the interview)")
|
86 |
|
87 |
# Input fields
|
88 |
input = st.text_input('Context', value=context_example) # user inputs context to construct a response (str)
|
89 |
|
90 |
+
|
91 |
|
92 |
|
93 |
|