magicfixeseverything commited on
Commit
cf05127
1 Parent(s): 8ce2889

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -559,21 +559,10 @@ except:
559
 
560
 
561
 
562
- if device == "cuda":
563
-
564
- PYTORCH_CUDA_ALLOC_CONF = {
565
- "max_split_size_mb": 8000
566
- }
567
- torch.cuda.max_memory_allocated(
568
- device = device
569
- )
570
- torch.cuda.empty_cache()
571
-
572
-
573
-
574
  if script_being_run_on_hugging_face == 1:
575
 
576
  use_custom_hugging_face_cache_dir = 0
 
577
  show_messages_in_modal_on_page = 0
578
 
579
  ending_html = """
@@ -583,6 +572,18 @@ If you would like to download this app to run offline on a Windows computer that
583
 
584
 
585
 
 
 
 
 
 
 
 
 
 
 
 
 
586
  saved_images_dir = main_dir + "/" + saved_images_folder_name
587
 
588
  hugging_face_cache_dir = main_dir + "/" + cache_directory_folder_name
 
559
 
560
 
561
 
 
 
 
 
 
 
 
 
 
 
 
 
562
  if script_being_run_on_hugging_face == 1:
563
 
564
  use_custom_hugging_face_cache_dir = 0
565
+ auto_save_imagery = 0
566
  show_messages_in_modal_on_page = 0
567
 
568
  ending_html = """
 
572
 
573
 
574
 
575
+ if device == "cuda":
576
+
577
+ PYTORCH_CUDA_ALLOC_CONF = {
578
+ "max_split_size_mb": 8000
579
+ }
580
+ torch.cuda.max_memory_allocated(
581
+ device = device
582
+ )
583
+ torch.cuda.empty_cache()
584
+
585
+
586
+
587
  saved_images_dir = main_dir + "/" + saved_images_folder_name
588
 
589
  hugging_face_cache_dir = main_dir + "/" + cache_directory_folder_name