Update app.py
Browse files
app.py
CHANGED
|
@@ -103,13 +103,13 @@ with gr.Blocks(theme=theme) as chatbot:
|
|
| 103 |
], multiselect=True, label="Character Race", info="You can choose multiple")
|
| 104 |
character_alignment = gr.Dropdown(["Lawful Good", "Neutral Good", "Chaotic Good", "Lawful Neutral", "True Neutral", "Chaotic Neutral", "Lawful Evil", "Neutral Evil", "Chaotic Evil"], label="Character Alignment", elem_classes="alignment_radio")
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
|
| 115 |
chatbot.launch()
|
|
|
|
| 103 |
], multiselect=True, label="Character Race", info="You can choose multiple")
|
| 104 |
character_alignment = gr.Dropdown(["Lawful Good", "Neutral Good", "Chaotic Good", "Lawful Neutral", "True Neutral", "Chaotic Neutral", "Lawful Evil", "Neutral Evil", "Chaotic Evil"], label="Character Alignment", elem_classes="alignment_radio")
|
| 105 |
|
| 106 |
+
with gr.Tab("Step 2"):
|
| 107 |
+
with gr.Column(scale=2):
|
| 108 |
+
gr.ChatInterface(
|
| 109 |
+
fn=respond,
|
| 110 |
+
additional_inputs=[character_name, character_class, character_race, character_alignment], # Pass name into function!
|
| 111 |
+
type="messages",
|
| 112 |
+
examples=None
|
| 113 |
+
)
|
| 114 |
|
| 115 |
chatbot.launch()
|