File size: 398 Bytes
161270b 4b96df5 161270b bda7a89 4b96df5 161270b 43cfb4c 161270b b823111 4b96df5 161270b 4b96df5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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 * |