Spaces:
Sleeping
Sleeping
File size: 511 Bytes
79e7ab3 081316e 7187414 f9b4942 7187414 79e7ab3 b1f4cb2 79e7ab3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
from utils import PhotoMakerStableDiffusionXLPipeline
global models_dict
models_dict = {
"RealVision": "SG161222/RealVisXL_V4.01111" ,
"Unstable": "stablediffusionapi/sdxl-unstable-diffusers-y"
}
def greet(name):
pipe2 = PhotoMakerStableDiffusionXLPipeline.from_pretrained(
models_dict["RealVision"], torch_dtype=torch.float16, use_safetensors=use_safetensors)
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch() |