This commit is contained in:
teslim
2025-06-13 19:12:08 +01:00
parent 2180cd856a
commit bfcdcf4786
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -39,9 +39,13 @@ def validate_worker_document():
file_path = os.path.join(upload_folder, filename)
file.save(file_path)
print("loading document")
# Load the document for processing
docs = load_document(file_path)
print("document loaded")
# Instantiate the chatbot service
chatbot = Chatbot()
+1 -1
View File
@@ -4,7 +4,7 @@ from flask import Flask, session, redirect, url_for, request, g, jsonify
from dotenv import load_dotenv
load_dotenv()
API_KEY = "erp_3bb0e4be8508494bb23621fc10e76a7d"
API_KEY = os.getenv("API_KEY") or "erp_3bb0e4be8508494bb23621fc10e76a7d"
def auth_check(func):
@wraps(func)