Spaces:
Sleeping
Sleeping
import gradio as gr | |
from gen_tab import create_gen_tab | |
from train_tab import create_train_tab | |
from virtualtryon_tab import create_virtualtryon_tab | |
from faceswap_tab import create_faceswap_tab | |
from ipadapter_tab import create_ipadaptor_tab | |
from dotenv import load_dotenv, find_dotenv | |
import os | |
_ = load_dotenv(find_dotenv()) | |
with gr.Blocks(theme=gr.themes.Soft( | |
radius_size=gr.themes.sizes.radius_none, | |
primary_hue=gr.themes.colors.emerald, | |
secondary_hue=gr.themes.colors.green | |
)) as demo: | |
with gr.Tabs() as tabs: | |
create_gen_tab() | |
create_virtualtryon_tab() | |
# create_faceswap_tab() | |
create_ipadaptor_tab() | |
create_train_tab() | |
demo.launch(share=True,debug=True) #,auth=[("username", "password"),(os.getenv("APP_USER"),os.getenv("APP_PW"))]) |