Trying Dropdown multiselect
Browse files
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.
|
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(
|