haramkoo commited on
Commit
59f0c79
·
1 Parent(s): 67e0e4f

added examples

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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', placeholder=context_example) # user inputs context to construct a response (str)
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