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
@@ -38,9 +38,13 @@ def validate_worker_document():
upload_folder = current_app.config['UPLOAD_FOLDER'] upload_folder = current_app.config['UPLOAD_FOLDER']
file_path = os.path.join(upload_folder, filename) file_path = os.path.join(upload_folder, filename)
file.save(file_path) file.save(file_path)
print("loading document")
# Load the document for processing # Load the document for processing
docs = load_document(file_path) docs = load_document(file_path)
print("document loaded")
# Instantiate the chatbot service # Instantiate the chatbot service
chatbot = Chatbot() 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 from dotenv import load_dotenv
load_dotenv() load_dotenv()
API_KEY = "erp_3bb0e4be8508494bb23621fc10e76a7d" API_KEY = os.getenv("API_KEY") or "erp_3bb0e4be8508494bb23621fc10e76a7d"
def auth_check(func): def auth_check(func):
@wraps(func) @wraps(func)