JeCabrera commited on
Commit
ce375aa
·
verified ·
1 Parent(s): c84e2dd

Upload 13 files

Browse files
src/components/__init__.py CHANGED
@@ -0,0 +1 @@
 
 
1
+ # Empty file to make the directory a Python package
src/data/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ # Empty file to make the directory a Python package
src/services/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ # Empty file to make the directory a Python package
src/services/story_generator.py CHANGED
@@ -463,7 +463,7 @@ class StoryGenerator:
463
  story = response.parts[0].text.strip()
464
  formula_types = ["GPS", "AIDA", "4U", "Númerica Suprema"]
465
  selected_formula = random.choice(formula_types)
466
- headline = generate_headline_for_story(story, selected_formula, product, target_audience, mood, temperature)
467
  if headline:
468
  return f"{headline}\n\n{story}"
469
  raise ValueError("No se pudo generar la historia")
 
463
  story = response.parts[0].text.strip()
464
  formula_types = ["GPS", "AIDA", "4U", "Númerica Suprema"]
465
  selected_formula = random.choice(formula_types)
466
+ headline = self.generate_headline(story, selected_formula, product, target_audience, mood, temperature)
467
  if headline:
468
  return f"{headline}\n\n{story}"
469
  raise ValueError("No se pudo generar la historia")