import gradio as gr import requests import json import os from datetime import datetime, timedelta from concurrent.futures import ThreadPoolExecutor, as_completed from functools import lru_cache from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from openai import OpenAI from bs4 import BeautifulSoup import re import pathlib import sqlite3 import pytz 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)