Spaces:
Runtime error
Runtime error
Download app.py from fantaxy/fantasy-novel-kr: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/spaces/fantaxy/fantasy-novel-kr/resolve/main/app.py
- Command line
-
hf download hf://spaces/fantaxy/fantasy-novel-kr/app.py
-
curl -L -o app.py https://huggingface.co/spaces/fantaxy/fantasy-novel-kr/resolve/main/app.py
528 Bytes
| # -*- coding: utf-8 -*- | |
| import gradio as gr | |
| from huggingface_hub import InferenceClient | |
| from gradio_client import Client | |
| import os | |
| import requests | |
| import asyncio | |
| import logging | |
| from concurrent.futures import ThreadPoolExecutor | |
| 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) |