fffiloni commited on
Commit
186a225
1 Parent(s): 13d670f

turn off APIs

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -375,29 +375,34 @@ with gr.Blocks(css=css) as demo:
375
  current_sleep_time.change(
376
  fn = swap_sleep_time,
377
  inputs = current_sleep_time,
378
- outputs = None
 
379
  )
380
 
381
  demo.load(
382
  fn = check_sleep_time,
383
  inputs = None,
384
- outputs = [current_sleep_time, sleep_time_message, b_lora_name, instance_prompt, training_type, training_steps, train_btn]
 
385
  )
386
 
387
  training_type.change(
388
  fn = change_training_setup,
389
  inputs = [training_type],
390
- outputs = [training_steps, checkpoint_step]
 
391
  )
392
 
393
  train_btn.click(
394
  fn = get_start_info,
395
  inputs = [image, b_lora_name, instance_prompt],
396
- outputs = [started_info, status]
 
397
  ).then(
398
  fn = main,
399
  inputs = [image, b_lora_name, instance_prompt, training_type, training_steps],
400
- outputs = [status]
 
401
  )
402
 
403
  demo.launch(show_api=False, debug=True, show_error=True)
 
375
  current_sleep_time.change(
376
  fn = swap_sleep_time,
377
  inputs = current_sleep_time,
378
+ outputs = None,
379
+ show_api = False
380
  )
381
 
382
  demo.load(
383
  fn = check_sleep_time,
384
  inputs = None,
385
+ outputs = [current_sleep_time, sleep_time_message, b_lora_name, instance_prompt, training_type, training_steps, train_btn],
386
+ show_api = False
387
  )
388
 
389
  training_type.change(
390
  fn = change_training_setup,
391
  inputs = [training_type],
392
+ outputs = [training_steps, checkpoint_step],
393
+ show_api = False
394
  )
395
 
396
  train_btn.click(
397
  fn = get_start_info,
398
  inputs = [image, b_lora_name, instance_prompt],
399
+ outputs = [started_info, status],
400
+ show_api = False
401
  ).then(
402
  fn = main,
403
  inputs = [image, b_lora_name, instance_prompt, training_type, training_steps],
404
+ outputs = [status],
405
+ show_api = False
406
  )
407
 
408
  demo.launch(show_api=False, debug=True, show_error=True)