Spaces:
Sleeping
Sleeping
File size: 442 Bytes
273669d 081316e 959316a 7187414 328a67d 7187414 79e7ab3 b1f4cb2 79e7ab3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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() |