Update app.py
Browse files
app.py
CHANGED
@@ -94,9 +94,9 @@ def printMessages(messages):
|
|
94 |
logging.info("messages:"+msg_string)
|
95 |
return msg_string
|
96 |
|
97 |
-
app = gr.Interface(fn=chatbot, inputs=[gr.
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
description="DND Game",theme="compact")
|
102 |
app.launch(share=False)
|
|
|
94 |
logging.info("messages:"+msg_string)
|
95 |
return msg_string
|
96 |
|
97 |
+
app = gr.Interface(fn=chatbot, inputs=[gr.Dropdown(["Orc", "Human", "Elf", "Dwarf", "Halfling", "Goliath", "Dragonborn"], label="Race", info="please choose your race:"),
|
98 |
+
gr.Dropdown(["Warrior", "Mage", "Priest", "Assassin", "Thief", "Paladin", "Archer", "Guardian"], label="Class", info="please choose the name of the class you wish to play as:"),
|
99 |
+
gr.Textbox(lines=7, label="You ask and answer questions below"), "state"],
|
100 |
+
outputs=[gr.Textbox(label="DND Game Reply", placeholder=roleAns), gr.Textbox(label="History"), "state"], title="DND Game",#, gr.Textbox(label="History"),
|
101 |
description="DND Game",theme="compact")
|
102 |
app.launch(share=False)
|