Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,17 +73,18 @@ def generate(pipes, enemies, blocks, elevation, temperature = 2.0, level_size =
|
|
| 73 |
return [img, gradio_html]
|
| 74 |
|
| 75 |
with gr.Blocks().queue() as demo:
|
| 76 |
-
gr.Markdown('''
|
| 77 |
-
|
|
|
|
| 78 |
''')
|
| 79 |
with gr.Tabs():
|
| 80 |
with gr.TabItem("Compose prompt"):
|
| 81 |
with gr.Row():
|
| 82 |
-
pipes = gr.Radio(["no", "little", "some", "many"], label="How many pipes?")
|
| 83 |
-
enemies = gr.Radio(["no", "little", "some", "many"], label="How many enemies?")
|
| 84 |
with gr.Row():
|
| 85 |
-
blocks = gr.Radio(["little", "some", "many"], label="How many blocks?")
|
| 86 |
-
elevation = gr.Radio(["low", "high"], label="Elevation?")
|
| 87 |
with gr.TabItem("Type prompt"):
|
| 88 |
text_prompt = gr.Textbox(value="", label="Enter your MarioGPT prompt. ex: 'many pipes, many enemies, some blocks, low elevation'")
|
| 89 |
|
|
|
|
| 73 |
return [img, gradio_html]
|
| 74 |
|
| 75 |
with gr.Blocks().queue() as demo:
|
| 76 |
+
gr.Markdown('''# MarioGPT
|
| 77 |
+
### Playable demo for MarioGPT: Open-Ended Text2Level Generation through Large Language Models
|
| 78 |
+
[[Github](https://github.com/shyamsn97/mario-gpt)], [[Paper](https://arxiv.org/abs/2302.05981)]
|
| 79 |
''')
|
| 80 |
with gr.Tabs():
|
| 81 |
with gr.TabItem("Compose prompt"):
|
| 82 |
with gr.Row():
|
| 83 |
+
pipes = gr.Radio(["no", "little", "some", "many"], value="some", label="How many pipes?")
|
| 84 |
+
enemies = gr.Radio(["no", "little", "some", "many"], value="some", label="How many enemies?")
|
| 85 |
with gr.Row():
|
| 86 |
+
blocks = gr.Radio(["little", "some", "many"], value="some", label="How many blocks?")
|
| 87 |
+
elevation = gr.Radio(["low", "high"], value="low", label="Elevation?")
|
| 88 |
with gr.TabItem("Type prompt"):
|
| 89 |
text_prompt = gr.Textbox(value="", label="Enter your MarioGPT prompt. ex: 'many pipes, many enemies, some blocks, low elevation'")
|
| 90 |
|