Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
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
|