Update app.py
Browse files
app.py
CHANGED
|
@@ -102,17 +102,17 @@ with gr.Blocks(theme=theme) as chatbot:
|
|
| 102 |
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")
|
| 103 |
|
| 104 |
with gr.Tab("Campaign Details"):
|
| 105 |
-
campaign_description = gr.Textbox(label="Describe the campaign and the current situation", lines=
|
| 106 |
-
party_description = gr.Textbox(label="Describe the current members of your party", lines=
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
with gr.Column(scale=2):
|
| 111 |
with gr.Column(scale=2):
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
|
| 118 |
chatbot.launch()
|
|
|
|
| 102 |
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")
|
| 103 |
|
| 104 |
with gr.Tab("Campaign Details"):
|
| 105 |
+
campaign_description = gr.Textbox(label="Describe the campaign and the current situation", lines=5)
|
| 106 |
+
party_description = gr.Textbox(label="Describe the current members of your party", lines=5)
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
with gr.Column(scale=2):
|
| 111 |
with gr.Column(scale=2):
|
| 112 |
+
gr.ChatInterface(
|
| 113 |
+
fn=respond,
|
| 114 |
+
additional_inputs=[character_name, character_class, character_race, character_alignment], # Pass name into function!
|
| 115 |
+
type="messages",
|
| 116 |
+
examples=None)
|
| 117 |
|
| 118 |
chatbot.launch()
|