lorentz commited on
Commit
a09b89c
1 Parent(s): c4c1c56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -93,30 +93,23 @@ st.markdown("<p style='text-align: right'>By <a href='https://entzyeung.github.i
93
  # """
94
  # )
95
 
96
- form_input = st.text_area('Enter the name of the product or service you want to promote: ', 'PlayStation 6', height=100)
97
- # st.write(f'You wrote {len(form_input)} characters.')
98
 
99
-
100
- # User Input Section with Improved Layout
101
  col1, col2 = st.columns(2)
102
 
103
  with col1:
104
- form_input = st.text_area('Enter the product or service:', 'PlayStation 6', height=150)
105
 
106
  with col2:
107
  tasktype_option = st.selectbox(
108
  'Marketing copy type:',
109
  ('Draft a Twitter post', 'Draft a sales copy', 'Draft a product description'),
110
- index=1)
111
  age_option = st.selectbox(
112
  'Target customers age group:',
113
  ('below age 18', 'age 18-45', 'age 46-65', 'age > 65'),
114
  index=1)
115
 
116
-
117
- # numberOfWords= st.slider('Words limit', 1, 200, 25)
118
- numberOfWords = 40 # the new model doesn't support this.
119
-
120
  submit = st.button("Generate Your Sales Copy")
121
 
122
  if submit:
 
93
  # """
94
  # )
95
 
 
 
96
 
97
+ # Layout
 
98
  col1, col2 = st.columns(2)
99
 
100
  with col1:
101
+ form_input = st.text_area('Enter the product or service:', 'PlayStation 6', height=80)
102
 
103
  with col2:
104
  tasktype_option = st.selectbox(
105
  'Marketing copy type:',
106
  ('Draft a Twitter post', 'Draft a sales copy', 'Draft a product description'),
107
+ index=0) # specifies the default selection by its position in the options list. 0 = the first
108
  age_option = st.selectbox(
109
  'Target customers age group:',
110
  ('below age 18', 'age 18-45', 'age 46-65', 'age > 65'),
111
  index=1)
112
 
 
 
 
 
113
  submit = st.button("Generate Your Sales Copy")
114
 
115
  if submit: