Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ from huggingface_hub import hf_hub_download
|
|
30 |
from safetensors.torch import load_file, save_file
|
31 |
from diffusers import FluxPipeline
|
32 |
from PIL import Image, ImageDraw, ImageFont
|
33 |
-
from transformers import pipeline,
|
34 |
from refiners.fluxion.utils import manual_seed
|
35 |
from refiners.foundationals.latent_diffusion import Solver, solvers
|
36 |
from refiners.foundationals.latent_diffusion.stable_diffusion_1.multi_upscaler import (
|
@@ -39,7 +39,7 @@ from refiners.foundationals.latent_diffusion.stable_diffusion_1.multi_upscaler i
|
|
39 |
)
|
40 |
from datetime import datetime
|
41 |
|
42 |
-
model =
|
43 |
tokenizer = T5Tokenizer.from_pretrained("google/mt5-xl")
|
44 |
|
45 |
def log(msg):
|
|
|
30 |
from safetensors.torch import load_file, save_file
|
31 |
from diffusers import FluxPipeline
|
32 |
from PIL import Image, ImageDraw, ImageFont
|
33 |
+
from transformers import pipeline, MT5ForConditionalGeneration, T5Tokenizer
|
34 |
from refiners.fluxion.utils import manual_seed
|
35 |
from refiners.foundationals.latent_diffusion import Solver, solvers
|
36 |
from refiners.foundationals.latent_diffusion.stable_diffusion_1.multi_upscaler import (
|
|
|
39 |
)
|
40 |
from datetime import datetime
|
41 |
|
42 |
+
model = MT5ForConditionalGeneration.from_pretrained("google/mt5-xl")
|
43 |
tokenizer = T5Tokenizer.from_pretrained("google/mt5-xl")
|
44 |
|
45 |
def log(msg):
|