diff --git a/application/app.py b/application/app.py index a509ed63..73f860ea 100644 --- a/application/app.py +++ b/application/app.py @@ -1,5 +1,6 @@ import os import json +import traceback import dotenv import requests @@ -86,7 +87,6 @@ def api_answer(): # use try and except to check for exception try: - # check if the vectorstore is set if "active_docs" in data: vectorstore = "vectors/" + data["active_docs"] @@ -144,6 +144,8 @@ def api_answer(): # } return result except Exception as e: + # print whole traceback + traceback.print_exc() print(str(e)) return bad_request(500,str(e)) @@ -185,4 +187,4 @@ def after_request(response): if __name__ == "__main__": - app.run(debug=True) + app.run(debug=True, port=5001) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 797ec5b9..c83f4ace 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -37,7 +37,7 @@ "prettier-plugin-tailwindcss": "^0.2.2", "tailwindcss": "^3.2.4", "typescript": "^4.9.5", - "vite": "^4.1.0" + "vite": "^4.1.4" } }, "node_modules/@ampproject/remapping": { @@ -5678,9 +5678,9 @@ "dev": true }, "node_modules/vite": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.1.tgz", - "integrity": "sha512-LM9WWea8vsxhr782r9ntg+bhSFS06FJgCvvB0+8hf8UWtvaiDagKYWXndjfX6kGl74keHJUcpzrQliDXZlF5yg==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.4.tgz", + "integrity": "sha512-3knk/HsbSTKEin43zHu7jTwYWv81f8kgAL99G5NWBcA1LKvtvcVAC4JjBH1arBunO9kQka+1oGbrMKOjk4ZrBg==", "dev": true, "dependencies": { "esbuild": "^0.16.14", @@ -9724,9 +9724,9 @@ "dev": true }, "vite": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.1.tgz", - "integrity": "sha512-LM9WWea8vsxhr782r9ntg+bhSFS06FJgCvvB0+8hf8UWtvaiDagKYWXndjfX6kGl74keHJUcpzrQliDXZlF5yg==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.4.tgz", + "integrity": "sha512-3knk/HsbSTKEin43zHu7jTwYWv81f8kgAL99G5NWBcA1LKvtvcVAC4JjBH1arBunO9kQka+1oGbrMKOjk4ZrBg==", "dev": true, "requires": { "esbuild": "^0.16.14", diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index aaaf5b34..29b1b60c 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -19,7 +19,7 @@ export default function App() { />