jsakshi commited on
Commit
2178b75
·
verified ·
1 Parent(s): bfb4478

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -648,7 +648,7 @@ def start_story(initial_prompt):
648
  segment = generate_initial_story(initial_prompt)
649
  story_history.append(segment)
650
  options = generate_options(segment)
651
- return f"{segment}\n\n🔹 What happens next? Choose an option:\n1️ {options[0]}\n2️ {options[1]}\n3️ {options[2]}", options[0], options[1], options[2]
652
 
653
  def continue_story(choice):
654
  """Continue the story based on the user's choice."""
@@ -664,7 +664,7 @@ def continue_story(choice):
664
 
665
  story_history.append(story_output)
666
  options = generate_options(story_output)
667
- return f"{'\\n'.join(story_history)}\n\n🔹 What happens next? Choose an option:\n1️ {options[0]}\n2️ {options[1]}\n3️ {options[2]}", options[0], options[1], options[2]
668
 
669
  def reset_story():
670
  """Reset the story to start fresh."""
 
648
  segment = generate_initial_story(initial_prompt)
649
  story_history.append(segment)
650
  options = generate_options(segment)
651
+ return f"{segment}\n\n🔹 What happens next? Choose an option:\n1️ {options[0]}\n2️ {options[1]}\n3️ {options[2]}", options[0], options[1], options[2]
652
 
653
  def continue_story(choice):
654
  """Continue the story based on the user's choice."""
 
664
 
665
  story_history.append(story_output)
666
  options = generate_options(story_output)
667
+ return f"{'\\n'.join(story_history)}\n\n🔹 What happens next? Choose an option:\n1️ {options[0]}\n2️ {options[1]}\n3️ {options[2]}", options[0], options[1], options[2]
668
 
669
  def reset_story():
670
  """Reset the story to start fresh."""