Spaces:
Paused
Paused
| import os | |
| import re | |
| import random | |
| from http import HTTPStatus | |
| from typing import Dict, List, Optional, Tuple | |
| import base64 | |
| import anthropic | |
| import openai | |
| import asyncio | |
| import time | |
| from functools import partial | |
| import json | |
| import gradio as gr | |
| import modelscope_studio.components.base as ms | |
| import modelscope_studio.components.legacy as legacy | |
| import modelscope_studio.components.antd as antd | |
| import html | |
| import urllib.parse | |
| from huggingface_hub import HfApi, create_repo | |
| import string | |
| import random | |
| import requests # Additional import statement | |
| 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) |