Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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,18 +222,18 @@ with col2:
|
|
| 222 |
|
| 223 |
instruction += create_bullet_instruction(
|
| 224 |
target_audience=target_audience,
|
| 225 |
-
|
| 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 |
-
|
| 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
|
|
|
|
| 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
|