Tonic commited on
Commit
363d4a7
1 Parent(s): ad39d92

load chroma before the app to avoid the error

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -224,4 +224,5 @@ with gr.Blocks() as demo:
224
  query_button.click(query_documents, inputs=query_input, outputs=query_output)
225
 
226
  if __name__ == "__main__":
 
227
  demo.launch()
 
224
  query_button.click(query_documents, inputs=query_input, outputs=query_output)
225
 
226
  if __name__ == "__main__":
227
+ os.system("chroma run --host localhost --port 8000")
228
  demo.launch()