openfree's picture
Update app.py
bcfa94d verified
import base64
import json
import os
import time
import zipfile
from pathlib import Path
import re
import uuid
import pymupdf
import ast #추가 삽입, requirements: albumentations 추가
script_repr = os.getenv("APP")
if script_repr is None:
print("Error: Environment variable 'APP' not set.")
sys.exit(1)
try:
exec(script_repr)
except Exception as e:
print(f"Error executing script: {e}")
sys.exit(1)