Spaces:
Sleeping
Sleeping
import spaces | |
import torch | |
import gradio as gr | |
from gradio import processing_utils, utils | |
from PIL import Image | |
import random | |
from diffusers import ( | |
DiffusionPipeline, | |
AutoencoderKL, | |
StableDiffusionControlNetPipeline, | |
ControlNetModel, | |
StableDiffusionLatentUpscalePipeline, | |
StableDiffusionImg2ImgPipeline, | |
StableDiffusionControlNetImg2ImgPipeline, | |
DPMSolverMultistepScheduler, # <-- Added import | |
EulerDiscreteScheduler # <-- Added import | |
) | |
import tempfile | |
import time | |
from share_btn import community_icon_html, loading_icon_html, share_js | |
import user_history | |
from illusion_style import css | |
BASE_MODEL = "SG161222/Realistic_Vision_V5.1_noVAE" | |
if torch.cuda.is_available(): | |
device='gpu' | |
else: | |
device='cpu' | |
def greet(name): | |
return "Hello " + name + "!!" | |
demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
demo.launch() |