Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import sys
|
@@ -20,12 +21,14 @@ from funcs import (
|
|
20 |
get_latent_z,
|
21 |
save_videos
|
22 |
)
|
23 |
-
from transformers import pipeline, AutoTokenizer,
|
24 |
from diffusers import StableDiffusionXLPipeline
|
25 |
|
26 |
print("PyTorch version:", torch.__version__)
|
27 |
print("CUDA available:", torch.cuda.is_available())
|
28 |
|
|
|
|
|
29 |
def is_tensor(x):
|
30 |
return torch.is_tensor(x)
|
31 |
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
import sys
|
|
|
21 |
get_latent_z,
|
22 |
save_videos
|
23 |
)
|
24 |
+
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM
|
25 |
from diffusers import StableDiffusionXLPipeline
|
26 |
|
27 |
print("PyTorch version:", torch.__version__)
|
28 |
print("CUDA available:", torch.cuda.is_available())
|
29 |
|
30 |
+
# 나머지 코드는 그대로 유지...
|
31 |
+
|
32 |
def is_tensor(x):
|
33 |
return torch.is_tensor(x)
|
34 |
|