Spaces:
Sleeping
Sleeping
import gradio as gr | |
from model import ConvVAE | |
model = ConvVAE.from_pretrained( | |
model_id="BioMike/classical_portrait_vae", | |
cache_dir="./model_cache", | |
map_location="cpu", | |
strict=True | |
).eval() | |
from vae import vae | |
from morphing import morphing | |
demo = gr.TabbedInterface([vae, morphing], | |
["Image to Portrait", "Image to Image (Morphing)"], | |
title="CLassical Portraits VAE", | |
theme=gr.themes.Base()) | |
demo.queue() | |
demo.launch(debug=True, share=True) |