Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -389,8 +389,8 @@ def generate_30(
|
|
389 |
samples=1,
|
390 |
progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
|
391 |
):
|
392 |
-
global captioner_2
|
393 |
-
captioner2=captioner_2
|
394 |
seed = random.randint(0, MAX_SEED)
|
395 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
396 |
if latent_file is not None: # Check if a latent file is provided
|
@@ -540,8 +540,8 @@ def generate_60(
|
|
540 |
samples=1,
|
541 |
progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
|
542 |
):
|
543 |
-
global captioner_2
|
544 |
-
captioner2=captioner_2
|
545 |
seed = random.randint(0, MAX_SEED)
|
546 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
547 |
if latent_file is not None: # Check if a latent file is provided
|
@@ -691,8 +691,8 @@ def generate_90(
|
|
691 |
samples=1,
|
692 |
progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
|
693 |
):
|
694 |
-
global captioner_2
|
695 |
-
captioner2=captioner_2
|
696 |
seed = random.randint(0, MAX_SEED)
|
697 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
698 |
if latent_file is not None: # Check if a latent file is provided
|
|
|
389 |
samples=1,
|
390 |
progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
|
391 |
):
|
392 |
+
#global captioner_2
|
393 |
+
#captioner2=captioner_2
|
394 |
seed = random.randint(0, MAX_SEED)
|
395 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
396 |
if latent_file is not None: # Check if a latent file is provided
|
|
|
540 |
samples=1,
|
541 |
progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
|
542 |
):
|
543 |
+
#global captioner_2
|
544 |
+
#captioner2=captioner_2
|
545 |
seed = random.randint(0, MAX_SEED)
|
546 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
547 |
if latent_file is not None: # Check if a latent file is provided
|
|
|
691 |
samples=1,
|
692 |
progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
|
693 |
):
|
694 |
+
#global captioner_2
|
695 |
+
#captioner2=captioner_2
|
696 |
seed = random.randint(0, MAX_SEED)
|
697 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
698 |
if latent_file is not None: # Check if a latent file is provided
|