fix
This commit is contained in:
@@ -38,9 +38,13 @@ def validate_worker_document():
|
||||
upload_folder = current_app.config['UPLOAD_FOLDER']
|
||||
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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user