JeCabrera commited on
Commit
7cdbe3e
verified
1 Parent(s): 1aba1ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -198,11 +198,17 @@ with col2:
198
 
199
  # Get the instruction using the formula
200
  # Usar la funci贸n actualizada
 
 
 
 
 
 
201
  instruction = create_offer_instruction(
202
- avatar_description=avatar_description,
203
- product_name=product_name,
204
- selected_formula_name=selected_formula_name,
205
- offer_formulas=offer_formulas
206
  )
207
 
208
  # Add additional context based on input type
 
198
 
199
  # Get the instruction using the formula
200
  # Usar la funci贸n actualizada
201
+ # In the generate_offer function or wherever the error is occurring
202
+ def generate_offer():
203
+ # Make sure to get the selected formula name from the session state or UI
204
+ selected_formula_name = st.session_state.formula_type # This should match the variable name from your UI
205
+
206
+ # Now use it in your function call
207
  instruction = create_offer_instruction(
208
+ avatar_description=target_audience,
209
+ product_name=product_service,
210
+ selected_formula_name=selected_formula_name,
211
+ offer_formulas=offer_formulas
212
  )
213
 
214
  # Add additional context based on input type