Spaces:
Running
on
Zero
Running
on
Zero
File size: 638 Bytes
176edce 0b63713 176edce f8844a3 0b63713 2045d7f 614753e 0ac791c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import spaces
import argparse
import os
import time
from os import path
import shutil
from datetime import datetime
from safetensors.torch import load_file
from huggingface_hub import hf_hub_download
import gradio as gr
import torch
from diffusers import FluxPipeline
from PIL import Image
from transformers import pipeline
import base64
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) |