File size: 710 Bytes
4a1aee0
011e303
 
 
 
 
 
 
258fd71
53714f5
1c79c50
53714f5
1c79c50
011e303
5546e52
 
 
 
 
 
 
 
 
 
 
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
import os
import spaces
import gradio as gr
import numpy as np
from PIL import Image
import random
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
import re
from cohere import ClientV2  # Changed from HuggingFace to Cohere
import torch
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
from transformers import pipeline as transformers_pipeline


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)