Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,37 @@ import json
|
|
| 8 |
from pathlib import Path
|
| 9 |
import random
|
| 10 |
# Importações de Hugging Face
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
from huggingface_hub import snapshot_download, HfFolder, hf_hub_download
|
| 12 |
from transformers import T5EncoderModel, T5TokenizerFast
|
| 13 |
from diffusers import LTXLatentUpsamplePipeline, AutoModel
|
|
|
|
| 8 |
from pathlib import Path
|
| 9 |
import random
|
| 10 |
# Importações de Hugging Face
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import gc
|
| 14 |
+
import io
|
| 15 |
+
import json
|
| 16 |
+
import logging
|
| 17 |
+
import os
|
| 18 |
+
import random
|
| 19 |
+
import shutil
|
| 20 |
+
import subprocess
|
| 21 |
+
import sys
|
| 22 |
+
import tempfile
|
| 23 |
+
import time
|
| 24 |
+
import traceback
|
| 25 |
+
import warnings
|
| 26 |
+
from pathlib import Path
|
| 27 |
+
from typing import Dict, List, Optional, Tuple, Union
|
| 28 |
+
import torch
|
| 29 |
+
import yaml
|
| 30 |
+
import numpy as np
|
| 31 |
+
from einops import rearrange
|
| 32 |
+
from huggingface_hub import hf_hub_download
|
| 33 |
+
from transformers import T5EncoderModel, T5Tokenizer
|
| 34 |
+
from safetensors import safe_open
|
| 35 |
+
from managers.gpu_manager import gpu_manager
|
| 36 |
+
from managers.vae_manager import vae_manager_singleton
|
| 37 |
+
from transformers import T5EncoderModel, T5Tokenizer
|
| 38 |
+
from safetensors import safe_open
|
| 39 |
+
|
| 40 |
+
from PIL import Image
|
| 41 |
+
|
| 42 |
from huggingface_hub import snapshot_download, HfFolder, hf_hub_download
|
| 43 |
from transformers import T5EncoderModel, T5TokenizerFast
|
| 44 |
from diffusers import LTXLatentUpsamplePipeline, AutoModel
|