demetz commited on
Commit
19a9fa3
·
verified ·
1 Parent(s): ac4492f

Trying Dropdown multiselect

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ with gr.Blocks(theme=theme) as chatbot:
91
 
92
 
93
  character_name = gr.Textbox(label = "Character Name", placeholder="Type your name here…", info ="optional")
94
- character_class = gr.CheckboxGroup(['Barbarian', 'Bard', 'Cleric', 'Druid', 'Fighter', 'Monk', 'Paladin', 'Ranger', 'Rogue', 'Sorcerer', 'Warlock', 'Wizard'], label="Character Class", info="Choose one or more")
95
  character_alignment = gr.Radio(["Lawful Good", "Neutral Good", "Chaotic Good", "Lawful Neutral", "True Neutral", "Chaotic Neutral", "Lawful Evil", "Neutral Evil", "Chaotic Evil"], elem_classes="alignment_radio")
96
  with gr.Column(scale=2):
97
  gr.ChatInterface(
 
91
 
92
 
93
  character_name = gr.Textbox(label = "Character Name", placeholder="Type your name here…", info ="optional")
94
+ character_class = gr.Dropdown(['Barbarian', 'Bard', 'Cleric', 'Druid', 'Fighter', 'Monk', 'Paladin', 'Ranger', 'Rogue', 'Sorcerer', 'Warlock', 'Wizard'], label="Character Class", info="Choose one or more", multiselect=True)
95
  character_alignment = gr.Radio(["Lawful Good", "Neutral Good", "Chaotic Good", "Lawful Neutral", "True Neutral", "Chaotic Neutral", "Lawful Evil", "Neutral Evil", "Chaotic Evil"], elem_classes="alignment_radio")
96
  with gr.Column(scale=2):
97
  gr.ChatInterface(