DalleXL3 / app1.py
K00B404's picture
Rename app.py to app1.py
3310071 verified
raw
history blame contribute delete
398 Bytes
import os
import gradio
APP_CHOICES = {
"Default App": "simple_app",
"Advanced App": "adv_app",
"fine-tune": "tuner"
}
app_choice = os.getenv("APP_CHOICE", "simple_app")
if app_choice == "adv_app" and os.path.exists("adv_app.py"):
from adv_app import *
elif app_choice == "simple_app" and os.path.exists("simple_app.py"):
from simple_app import *
else:
from tuner import *