demetz commited on
Commit
d2e51f8
·
verified ·
1 Parent(s): e7a8f0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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=10)
106
- party_description = gr.Textbox(label="Describe the current members of your party", lines=10)
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()
 
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()