Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
5 |
os.makedirs("/tmp/hf_cache", exist_ok=True)
|
6 |
from huggingface_hub import whoami
|
7 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
8 |
-
|
9 |
import spaces
|
10 |
from fastapi import FastAPI, Query
|
11 |
from huggingface_hub import list_repo_files, hf_hub_download, upload_file
|
@@ -16,6 +16,7 @@ from fastapi import FastAPI, UploadFile, File
|
|
16 |
from fastapi.middleware.cors import CORSMiddleware
|
17 |
from pathlib import Path
|
18 |
from pathlib import Path
|
|
|
19 |
import uuid
|
20 |
import shutil
|
21 |
import json
|
@@ -428,7 +429,7 @@ def recursive_update(d, u):
|
|
428 |
|
429 |
|
430 |
@spaces.GPU(duration=50)
|
431 |
-
def
|
432 |
lora_name,
|
433 |
concept_sentence,
|
434 |
steps,
|
|
|
5 |
os.makedirs("/tmp/hf_cache", exist_ok=True)
|
6 |
from huggingface_hub import whoami
|
7 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
8 |
+
from fastapi import HTTPException
|
9 |
import spaces
|
10 |
from fastapi import FastAPI, Query
|
11 |
from huggingface_hub import list_repo_files, hf_hub_download, upload_file
|
|
|
16 |
from fastapi.middleware.cors import CORSMiddleware
|
17 |
from pathlib import Path
|
18 |
from pathlib import Path
|
19 |
+
from flux_train_ui import start_training
|
20 |
import uuid
|
21 |
import shutil
|
22 |
import json
|
|
|
429 |
|
430 |
|
431 |
@spaces.GPU(duration=50)
|
432 |
+
def start_training0(
|
433 |
lora_name,
|
434 |
concept_sentence,
|
435 |
steps,
|