BOXNYC commited on
Commit
139fa99
1 Parent(s): 031baa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def chatbot(input_text, api_token):
28
  if api_token != os.environ["API_TOKEN"]:
29
  return 'API_TOKEN does not match'
30
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
31
- response = index.query(input_text, response_mode="accumulate")
32
  return response.response
33
 
34
  iface = gr.Interface(fn=chatbot,
 
28
  if api_token != os.environ["API_TOKEN"]:
29
  return 'API_TOKEN does not match'
30
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
31
+ response = index.query(input_text, response_mode="tree_summarize")
32
  return response.response
33
 
34
  iface = gr.Interface(fn=chatbot,