Update app.py
Browse files149 unmodified lines150151152153154155156157149 unmodified linesemail_instruction += ".\n\n"# Agregar ejemplos de la fórmulaexamples_to_use = selected_formula['examples'][:min(2, len(selected_formula['examples']))] # Reduced to only 2 examplesemail_instruction += "FORMULA EXAMPLES TO STUDY (ONLY FOR STRUCTURE, NOT CONTENT):\n"for i, example in enumerate(examples_to_use, 1):149 unmodified lines150151152153154155156157158159160161162149 unmodified linesemail_instruction += ".\n\n"# Agregar ejemplos de la fórmula - MODIFIED to select random examplesif len(selected_formula['examples']) > 2:# Select 2 random examples if there are more than 2 availableexamples_to_use = random.sample(selected_formula['examples'], 2)else:# Use all available examples if there are 2 or fewerexamples_to_use = selected_formula['examples']email_instruction += "FORMULA EXAMPLES TO STUDY (ONLY FOR STRUCTURE, NOT CONTENT):\n"for i, example in enumerate(examples_to_use, 1):
app.py+7-2