bstraehle commited on
Commit
eda2f20
1 Parent(s): ed1e41c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -46,7 +46,7 @@ def extract_content_values(data):
46
 
47
  return content_values
48
 
49
- def chat(message, history):
50
  global _client, _assistant, _thread
51
 
52
  if _client == None:
@@ -87,7 +87,7 @@ gr.ChatInterface(
87
  undo_btn=None,
88
  clear_btn="Clear",
89
  #multimodal=True,
90
- #additional_inputs=[
91
- # gr.Textbox("You are a personal math tutor. Answer questions briefly, in a sentence or less.", label="System Prompt"),
92
- #],
93
  ).launch()
 
46
 
47
  return content_values
48
 
49
+ def chat(message, history, system_prompt):
50
  global _client, _assistant, _thread
51
 
52
  if _client == None:
 
87
  undo_btn=None,
88
  clear_btn="Clear",
89
  #multimodal=True,
90
+ additional_inputs=[
91
+ gr.Textbox("You are a personal math tutor. Answer questions briefly, in a sentence or less.", label="System Prompt"),
92
+ ],
93
  ).launch()