Spaces:
Build error
Build error
added examples
Browse files
app.py
CHANGED
|
@@ -60,15 +60,15 @@ context_option = st.selectbox(
|
|
| 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',
|
| 72 |
|
| 73 |
maxl, minl = st.columns(2)
|
| 74 |
|
|
|
|
| 60 |
)
|
| 61 |
|
| 62 |
if context_option == 'Elon Musk':
|
| 63 |
+
context_example = examples[0].value
|
| 64 |
elif context_option == 'Fashion designer':
|
| 65 |
+
context_example = example[1].value
|
| 66 |
elif context_option == 'Young entrepreneur':
|
| 67 |
+
context_example = example[2].value
|
| 68 |
|
| 69 |
|
| 70 |
# Input fields
|
| 71 |
+
input = st.text_input('Context', value=context_example) # user inputs context to construct a response (str)
|
| 72 |
|
| 73 |
maxl, minl = st.columns(2)
|
| 74 |
|