bstraehle commited on
Commit
0ba3638
1 Parent(s): 1643f7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -46,7 +46,7 @@ def extract_content_values(data):
46
 
47
  return content_values
48
 
49
- def chat(message, history, system_prompt):
50
  global _client, _assistant, _thread
51
 
52
  if _client == None:
@@ -79,6 +79,7 @@ gr.ChatInterface(
79
  chat,
80
  chatbot=gr.Chatbot(height=300),
81
  textbox=gr.Textbox(placeholder="Question", container=False, scale=7),
 
82
  title="Math Tutor",
83
  description="Ask Math Tutor any question",
84
  theme="soft",
@@ -88,7 +89,7 @@ gr.ChatInterface(
88
  undo_btn=None,
89
  clear_btn="Clear",
90
  #multimodal=True,
91
- additional_inputs=[
92
- gr.Textbox("sk-", label="OpenAI API Key", type = "password"),
93
- ],
94
  ).launch()
 
46
 
47
  return content_values
48
 
49
+ def chat(message, msg2, history):
50
  global _client, _assistant, _thread
51
 
52
  if _client == None:
 
79
  chat,
80
  chatbot=gr.Chatbot(height=300),
81
  textbox=gr.Textbox(placeholder="Question", container=False, scale=7),
82
+ textbox=gr.Textbox(placeholder="Question2", container=False, scale=7),
83
  title="Math Tutor",
84
  description="Ask Math Tutor any question",
85
  theme="soft",
 
89
  undo_btn=None,
90
  clear_btn="Clear",
91
  #multimodal=True,
92
+ #additional_inputs=[
93
+ # gr.Textbox("sk-", label="OpenAI API Key", type = "password"),
94
+ #],
95
  ).launch()