Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -209,7 +209,7 @@ with col2:
|
|
| 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
|
|
@@ -236,14 +236,6 @@ with col2:
|
|
| 236 |
skills=skills_value
|
| 237 |
)
|
| 238 |
|
| 239 |
-
# We don't need this additional context anymore since we're passing skills directly to the generators
|
| 240 |
-
# if st.session_state.input_type == "manual":
|
| 241 |
-
# additional_context = f"""
|
| 242 |
-
# Additional information:
|
| 243 |
-
# Skills: {st.session_state.skills}
|
| 244 |
-
# """
|
| 245 |
-
# instruction += additional_context
|
| 246 |
-
|
| 247 |
try:
|
| 248 |
generation_config = genai.GenerationConfig(temperature=st.session_state.temperature)
|
| 249 |
|
|
|
|
| 209 |
# Get the instruction using the formula
|
| 210 |
instruction = create_offer_instruction(
|
| 211 |
target_audience=target_audience,
|
| 212 |
+
product_service=product_service_value, # Changed from product_name to product_service
|
| 213 |
selected_formula_name=st.session_state.formula_type,
|
| 214 |
file_content=file_content,
|
| 215 |
skills=skills_value
|
|
|
|
| 236 |
skills=skills_value
|
| 237 |
)
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
try:
|
| 240 |
generation_config = genai.GenerationConfig(temperature=st.session_state.temperature)
|
| 241 |
|