Feat: add editor server backend

This commit is contained in:
litagin02
2024-02-23 13:21:14 +09:00
parent de539e74f9
commit e16cdad6e9
10 changed files with 423 additions and 54 deletions

3
app.py
View File

@@ -3,6 +3,7 @@ import datetime
import json
import os
import sys
from pathlib import Path
from typing import Optional
import gradio as gr
@@ -271,7 +272,7 @@ if __name__ == "__main__":
help="Do not launch app automatically",
)
args = parser.parse_args()
model_dir = args.dir
model_dir = Path(args.dir)
if args.cpu:
device = "cpu"