Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +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 |
-
|
32 |
-
response = index.query(input_text, response_mode=response_mode)
|
33 |
return response.response
|
34 |
|
35 |
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="accumulate")
|
|
|
32 |
return response.response
|
33 |
|
34 |
iface = gr.Interface(fn=chatbot,
|