JeCabrera commited on
Commit
8a14da2
·
verified ·
1 Parent(s): 0c5a0a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -206,13 +206,13 @@ with col2:
206
  if hasattr(st.session_state, 'file_content') and st.session_state.input_type in ["file", "both"]:
207
  file_content = st.session_state.file_content
208
 
209
- # Get the instruction using the formula
210
  instruction = create_offer_instruction(
211
  target_audience=target_audience,
212
- product_service=product_service_value,
213
  selected_formula_name=st.session_state.formula_type,
214
  file_content=file_content,
215
- skills=skills_value # Add skills to the offer instruction
216
  )
217
 
218
  # Add instruction for generating benefit bullets based on the promise
@@ -222,18 +222,18 @@ with col2:
222
 
223
  instruction += create_bullet_instruction(
224
  target_audience=target_audience,
225
- product_service=product_service_value,
226
  uploaded_content=bullet_content,
227
- skills=skills_value # Add skills to the bullet instruction
228
  )
229
 
230
  # Add instruction for generating bonuses that complement the offer
231
  instruction += create_bonus_instruction(
232
  target_audience=target_audience,
233
- product_service=product_service_value,
234
  selected_formula_name=st.session_state.formula_type,
235
- uploaded_content=bullet_content, # Pass the file content to bonus generator too
236
- skills=skills_value # Add skills to the bonus instruction
237
  )
238
 
239
  # We don't need this additional context anymore since we're passing skills directly to the generators
 
206
  if hasattr(st.session_state, 'file_content') and st.session_state.input_type in ["file", "both"]:
207
  file_content = st.session_state.file_content
208
 
209
+ # Get the instruction using the formula - change parameter name to match what the function expects
210
  instruction = create_offer_instruction(
211
  target_audience=target_audience,
212
+ product_name=product_service_value, # Changed from product_service to product_name
213
  selected_formula_name=st.session_state.formula_type,
214
  file_content=file_content,
215
+ skills=skills_value
216
  )
217
 
218
  # Add instruction for generating benefit bullets based on the promise
 
222
 
223
  instruction += create_bullet_instruction(
224
  target_audience=target_audience,
225
+ product_name=product_service_value, # Changed from product_service to product_name
226
  uploaded_content=bullet_content,
227
+ skills=skills_value
228
  )
229
 
230
  # Add instruction for generating bonuses that complement the offer
231
  instruction += create_bonus_instruction(
232
  target_audience=target_audience,
233
+ product_name=product_service_value, # Changed from product_service to product_name
234
  selected_formula_name=st.session_state.formula_type,
235
+ uploaded_content=bullet_content,
236
+ skills=skills_value
237
  )
238
 
239
  # We don't need this additional context anymore since we're passing skills directly to the generators