Views
No views yet
with gr.Row():
prompt = gr.Textbox(label="Describe the world you want to create", placeholder="Example: A world where gravity doesn't exist.")
with gr.Row():
environment = gr.Textbox(label="Describe the environment", placeholder="Example: Floating islands in a blue sky.")
with gr.Row():
rules = gr.Textbox(label="What are the rules of this world?", placeholder="Example: People can fly by thinking positively.")
with gr.Row():
creatures = gr.Textbox(label="Describe the creatures in this world", placeholder="Example: Friendly dragons with glowing wings.")
output = gr.Textbox(label="Your World Description", interactive=False)
create_button = gr.Button("Create World")
create_button.click(create_world, inputs=[prompt, environment, rules, creatures], outputs=output)
return app