Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,12 +14,12 @@ def generate_story(prompt, word_count):
|
|
14 |
|
15 |
# Define example inputs for the Gradio interface
|
16 |
example_inputs = [
|
17 |
-
"Once upon a time, in a magical forest, there was a curious rabbit named Oliver.",
|
18 |
-
"Amidst the hustle and bustle of a busy city, there lived a lonely street musician.",
|
19 |
-
"On a distant planet, explorers discovered an ancient alien artifact buried in the sand.",
|
20 |
-
"Hidden in the attic of an old house, a forgotten journal revealed a family secret.",
|
21 |
-
"In a futuristic world, a brilliant scientist invented a time-traveling device.",
|
22 |
-
"Deep in the ocean, an underwater explorer encountered a mysterious and ancient creature."
|
23 |
]
|
24 |
|
25 |
# Create a Gradio interface with examples and a word count slider
|
@@ -36,4 +36,4 @@ iface = gr.Interface(
|
|
36 |
)
|
37 |
|
38 |
# Launch the interface
|
39 |
-
iface.launch()
|
|
|
14 |
|
15 |
# Define example inputs for the Gradio interface
|
16 |
example_inputs = [
|
17 |
+
["Once upon a time, in a magical forest, there was a curious rabbit named Oliver."],
|
18 |
+
["Amidst the hustle and bustle of a busy city, there lived a lonely street musician."],
|
19 |
+
["On a distant planet, explorers discovered an ancient alien artifact buried in the sand.", 200],
|
20 |
+
["Hidden in the attic of an old house, a forgotten journal revealed a family secret.", 250],
|
21 |
+
["In a futuristic world, a brilliant scientist invented a time-traveling device.", 300],
|
22 |
+
["Deep in the ocean, an underwater explorer encountered a mysterious and ancient creature.", 350]
|
23 |
]
|
24 |
|
25 |
# Create a Gradio interface with examples and a word count slider
|
|
|
36 |
)
|
37 |
|
38 |
# Launch the interface
|
39 |
+
iface.launch()
|