TNK21 commited on
Commit
89b5de6
·
1 Parent(s): 86c61d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -12,12 +12,12 @@ def generate_story(prompt):
12
 
13
  # Define example inputs for the Gradio interface
14
  example_inputs = [
15
- "Once upon a time, there was a young boy who lived in a small village.",
16
- "The sun was setting over the horizon, casting a warm glow over the city.",
17
- "In a galaxy far, far away, a group of rebels were planning their next move.",
18
- "The door creaked open, revealing a dark and mysterious room.",
19
- "The clock struck midnight, and the old house came to life.",
20
- "The wind howled through the trees, as the storm raged on."
21
  ]
22
 
23
  # Create a Gradio interface with examples
@@ -27,7 +27,7 @@ iface = gr.Interface(
27
  outputs="text",
28
  title="Story Generator",
29
  description="Enter a prompt to generate a story.",
30
- examples=example_inputs,
31
  )
32
 
33
  # Launch the interface
 
12
 
13
  # Define example inputs for the Gradio interface
14
  example_inputs = [
15
+ "Once upon a time, in a magical forest, there was a curious rabbit named Oliver.",
16
+ "Amidst the hustle and bustle of a busy city, there lived a lonely street musician.",
17
+ "On a distant planet, explorers discovered an ancient alien artifact buried in the sand.",
18
+ "Hidden in the attic of an old house, a forgotten journal revealed a family secret.",
19
+ "In a futuristic world, a brilliant scientist invented a time-traveling device.",
20
+ "Deep in the ocean, an underwater explorer encountered a mysterious and ancient creature."
21
  ]
22
 
23
  # Create a Gradio interface with examples
 
27
  outputs="text",
28
  title="Story Generator",
29
  description="Enter a prompt to generate a story.",
30
+ examples=example_inputs
31
  )
32
 
33
  # Launch the interface