rahul7star commited on
Commit
6838c09
·
verified ·
1 Parent(s): fe6ff87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -40,7 +40,6 @@ from slugify import slugify
40
  sys.path.insert(0, "ai-toolkit")
41
  from toolkit.job import get_job
42
 
43
- from flux_train_ui import start_training
44
 
45
  app = FastAPI()
46
 
@@ -425,7 +424,11 @@ def recursive_update(d, u):
425
  d[k] = v
426
  return d
427
 
428
- def start_traininglocal(
 
 
 
 
429
  lora_name,
430
  concept_sentence,
431
  steps,
 
40
  sys.path.insert(0, "ai-toolkit")
41
  from toolkit.job import get_job
42
 
 
43
 
44
  app = FastAPI()
45
 
 
424
  d[k] = v
425
  return d
426
 
427
+
428
+
429
+
430
+ @spaces.GPU(duration=50)
431
+ def start_training(
432
  lora_name,
433
  concept_sentence,
434
  steps,