test1 / app.py
gwx666's picture
Update app.py
328a67d verified
raw
history blame contribute delete
442 Bytes
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()