Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ A story about {character1}, {character2}, {character3}, and {character4}, set in
|
|
| 15 |
The story is intended for a child aged {agefor}.' \
|
| 16 |
As much as possible use words that are in this list: {wordstouse}.
|
| 17 |
Make it fun and exciting with high burstiness and perplexity. Nobody wants a boring story :)
|
|
|
|
| 18 |
The story should be taught in {language}!
|
| 19 |
"""
|
| 20 |
|
|
@@ -57,7 +58,7 @@ with gr.Blocks() as demo:
|
|
| 57 |
with gr.Row():
|
| 58 |
resultoutput = gr.Textbox(label="Here's my story")
|
| 59 |
|
| 60 |
-
btn.click(fn=generate_story, inputs=[character1, character2, character3, character4, localizer, agefor, language, wordstouse], outputs=resultoutput)
|
| 61 |
|
| 62 |
demo.launch()
|
| 63 |
|
|
|
|
| 15 |
The story is intended for a child aged {agefor}.' \
|
| 16 |
As much as possible use words that are in this list: {wordstouse}.
|
| 17 |
Make it fun and exciting with high burstiness and perplexity. Nobody wants a boring story :)
|
| 18 |
+
Integrate all the following elements in the story: {content}.
|
| 19 |
The story should be taught in {language}!
|
| 20 |
"""
|
| 21 |
|
|
|
|
| 58 |
with gr.Row():
|
| 59 |
resultoutput = gr.Textbox(label="Here's my story")
|
| 60 |
|
| 61 |
+
btn.click(fn=generate_story, inputs=[character1, character2, character3, character4, localizer, agefor, language, content, wordstouse], outputs=resultoutput)
|
| 62 |
|
| 63 |
demo.launch()
|
| 64 |
|