Spaces:
Running
on
L40S
Running
on
L40S
import os | |
import gradio as gr | |
import random | |
import time | |
import logging | |
import google.generativeai as genai | |
import torch | |
import numpy as np | |
from diffusers import DiffusionPipeline | |
from transformers import pipeline as hf_pipeline | |
import re | |
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) |