Spaces:
Running
Running
Update app.py
Browse files
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,
|
| 16 |
-
"
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
-
"
|
| 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
|