Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -206,10 +206,10 @@ 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_name=product_service_value,
|
213 |
selected_formula_name=st.session_state.formula_type,
|
214 |
file_content=file_content,
|
215 |
skills=skills_value
|
@@ -222,7 +222,7 @@ with col2:
|
|
222 |
|
223 |
instruction += create_bullet_instruction(
|
224 |
target_audience=target_audience,
|
225 |
-
|
226 |
uploaded_content=bullet_content,
|
227 |
skills=skills_value
|
228 |
)
|
@@ -230,7 +230,7 @@ with col2:
|
|
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,
|
234 |
selected_formula_name=st.session_state.formula_type,
|
235 |
uploaded_content=bullet_content,
|
236 |
skills=skills_value
|
|
|
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_name=product_service_value,
|
213 |
selected_formula_name=st.session_state.formula_type,
|
214 |
file_content=file_content,
|
215 |
skills=skills_value
|
|
|
222 |
|
223 |
instruction += create_bullet_instruction(
|
224 |
target_audience=target_audience,
|
225 |
+
product_service=product_service_value, # Changed from product_name to product_service
|
226 |
uploaded_content=bullet_content,
|
227 |
skills=skills_value
|
228 |
)
|
|
|
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,
|
234 |
selected_formula_name=st.session_state.formula_type,
|
235 |
uploaded_content=bullet_content,
|
236 |
skills=skills_value
|