Add environment variable support for API key and max workers in OCR API; implement API key verification for secure access
Build and Push Docker Images / build-and-push (push) Successful in 19s

This commit is contained in:
2025-07-17 19:26:11 +02:00
parent a7d832c894
commit a97392f421
4 changed files with 71 additions and 5 deletions
+6
View File
@@ -7,10 +7,16 @@ This script demonstrates how to use the OCR API endpoints
import requests
import json
import sys
import os
from pathlib import Path
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
# API base URL
BASE_URL = "http://localhost:8000"
API_KEY = os.getenv("API_KEY")
def test_health():
"""Test the health endpoint"""