Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ import json
|
|
| 35 |
import yaml
|
| 36 |
from slugify import slugify
|
| 37 |
|
| 38 |
-
from
|
| 39 |
|
| 40 |
|
| 41 |
|
|
@@ -533,18 +533,7 @@ def start_training(
|
|
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
-
import os
|
| 537 |
-
import uuid
|
| 538 |
-
import json
|
| 539 |
-
import shutil
|
| 540 |
-
import yaml
|
| 541 |
-
from pathlib import Path
|
| 542 |
-
from fastapi import FastAPI, HTTPException
|
| 543 |
-
from fastapi.responses import JSONResponse
|
| 544 |
-
from huggingface_hub import hf_hub_download
|
| 545 |
-
from flux_train import start_training
|
| 546 |
|
| 547 |
-
app = FastAPI()
|
| 548 |
|
| 549 |
@app.post("/train-from-hf")
|
| 550 |
def auto_run_lora_from_repo():
|
|
|
|
| 35 |
import yaml
|
| 36 |
from slugify import slugify
|
| 37 |
|
| 38 |
+
from flux_train_ui import start_training
|
| 39 |
|
| 40 |
|
| 41 |
|
|
|
|
| 533 |
|
| 534 |
|
| 535 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 536 |
|
|
|
|
| 537 |
|
| 538 |
@app.post("/train-from-hf")
|
| 539 |
def auto_run_lora_from_repo():
|