harrygens commited on
Commit
8df5274
·
1 Parent(s): 9e98957

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,8 +7,8 @@ import json
7
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
8
 
9
  openai.api_key = os.environ['key']
10
- initMsg = os.environ['init']
11
- ansFirst = os.environ['ansfirst']
12
 
13
  mod = 3;
14
 
@@ -55,6 +55,6 @@ def printMessages(messages):
55
  return msg_string
56
 
57
  app = gr.Interface(fn=chatbot, inputs=[gr.Textbox(lines=7, label="You ask and answer questions below"), "state"],
58
- outputs=[gr.Textbox(label="DND Game Reply", placeholder=ansFirst), "state"], title="DND Game",#, gr.Textbox(label="History"),
59
  description="DND Game",theme="compact")
60
  app.launch(share=False)
 
7
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
8
 
9
  openai.api_key = os.environ['key']
10
+ role = os.environ['role']
11
+ aclass = os.environ['class']
12
 
13
  mod = 3;
14
 
 
55
  return msg_string
56
 
57
  app = gr.Interface(fn=chatbot, inputs=[gr.Textbox(lines=7, label="You ask and answer questions below"), "state"],
58
+ outputs=[gr.Textbox(label="DND Game Reply", placeholder=role), "state"], title="DND Game",#, gr.Textbox(label="History"),
59
  description="DND Game",theme="compact")
60
  app.launch(share=False)