JeCabrera commited on
Commit
8b6fc03
·
verified ·
1 Parent(s): febe020

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -220,13 +220,23 @@ with col2:
220
  instruction += creative_hook_instruction
221
 
222
  # Add instruction for generating benefit bullets based on the promise
223
- instruction += create_bullet_instruction()
 
 
 
 
 
 
 
 
 
224
 
225
  # Add instruction for generating bonuses that complement the offer
226
  instruction += create_bonus_instruction(
227
  avatar_description=avatar_description,
228
  product_name=product_name,
229
- selected_formula_name=st.session_state.formula_type
 
230
  )
231
 
232
  # Add additional context based on input type
 
220
  instruction += creative_hook_instruction
221
 
222
  # Add instruction for generating benefit bullets based on the promise
223
+ bullet_content = None
224
+ if hasattr(st.session_state, 'file_content') and st.session_state.input_type in ["file", "both"]:
225
+ bullet_content = st.session_state.file_content
226
+
227
+ instruction += create_bullet_instruction(
228
+ avatar_description=avatar_description,
229
+ product_name=product_name,
230
+ uploaded_content=bullet_content,
231
+ target_audience=target_audience
232
+ )
233
 
234
  # Add instruction for generating bonuses that complement the offer
235
  instruction += create_bonus_instruction(
236
  avatar_description=avatar_description,
237
  product_name=product_name,
238
+ selected_formula_name=st.session_state.formula_type,
239
+ target_audience=target_audience
240
  )
241
 
242
  # Add additional context based on input type