Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,17 +3,6 @@ from gradio_toggle import Toggle
|
|
3 |
import torch
|
4 |
from huggingface_hub import snapshot_download
|
5 |
from transformers import pipeline
|
6 |
-
import warnings
|
7 |
-
warnings.filterwarnings('ignore', category=FutureWarning)
|
8 |
-
warnings.filterwarnings('ignore', category=UserWarning)
|
9 |
-
|
10 |
-
# sacremoses 설치 확인
|
11 |
-
try:
|
12 |
-
import sacremoses
|
13 |
-
except ImportError:
|
14 |
-
print("Installing sacremoses...")
|
15 |
-
import subprocess
|
16 |
-
subprocess.check_call(["pip", "install", "sacremoses"])
|
17 |
|
18 |
from xora.models.autoencoders.causal_video_autoencoder import CausalVideoAutoencoder
|
19 |
from xora.models.transformers.transformer3d import Transformer3DModel
|
|
|
3 |
import torch
|
4 |
from huggingface_hub import snapshot_download
|
5 |
from transformers import pipeline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
from xora.models.autoencoders.causal_video_autoencoder import CausalVideoAutoencoder
|
8 |
from xora.models.transformers.transformer3d import Transformer3DModel
|