Spaces:
Sleeping
Sleeping
import gradio as gr | |
global models_dict | |
models_dict = { | |
"RealVision": "gwx666/test" , | |
"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() |