gstaff commited on
Commit
b2773c1
·
1 Parent(s): 4395834

Update description, try update for API support

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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.Pil(label="Monster Card")
316
- output_text_box = gr.Textbox(label="Monster Text")
317
- output_monster_image = gr.Pil(label="Monster Image")
318
- output_monster_html = gr.HTML(label="Monster HTML", show_label=False, visible=False)
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()