Spaces:
Runtime error
Runtime error
Update description, try update for API support
Browse files
app.py
CHANGED
|
@@ -310,12 +310,12 @@ app_description = (
|
|
| 310 |
"""
|
| 311 |
# Create your own D&D monster!
|
| 312 |
Enter a name, click Submit, and wait for about 4 minutes to see the result.
|
| 313 |
-
""")
|
| 314 |
-
input_box = gr.Textbox(label="Enter a monster name", placeholder="Jabberwock")
|
| 315 |
-
output_monster_card = gr.
|
| 316 |
-
output_text_box = gr.Textbox(label="Monster Text")
|
| 317 |
-
output_monster_image = gr.
|
| 318 |
-
output_monster_html = gr.HTML(label="Monster HTML"
|
| 319 |
iface = gr.Interface(title="MonsterGen", theme="default", description=app_description, fn=run, inputs=[input_box],
|
| 320 |
outputs=[output_monster_card, output_text_box, output_monster_image, output_monster_html])
|
| 321 |
iface.launch()
|
|
|
|
| 310 |
"""
|
| 311 |
# Create your own D&D monster!
|
| 312 |
Enter a name, click Submit, and wait for about 4 minutes to see the result.
|
| 313 |
+
""").strip()
|
| 314 |
+
input_box = gr.inputs.Textbox(label="Enter a monster name", placeholder="Jabberwock")
|
| 315 |
+
output_monster_card = gr.outputs.Image(label="Monster Card", type='pil')
|
| 316 |
+
output_text_box = gr.outputs.Textbox(label="Monster Text")
|
| 317 |
+
output_monster_image = gr.outputs.Image(label="Monster Image", type='pil')
|
| 318 |
+
output_monster_html = gr.outputs.HTML(label="Monster HTML")
|
| 319 |
iface = gr.Interface(title="MonsterGen", theme="default", description=app_description, fn=run, inputs=[input_box],
|
| 320 |
outputs=[output_monster_card, output_text_box, output_monster_image, output_monster_html])
|
| 321 |
iface.launch()
|