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
Build and Push Docker Images / build-and-push (push) Successful in 19s
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user