Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update code.py
Browse files
code.py
CHANGED
@@ -14,15 +14,10 @@ import warnings
|
|
14 |
# external
|
15 |
|
16 |
#import spaces
|
17 |
-
import torch
|
18 |
import gradio as gr
|
19 |
import numpy as np
|
20 |
from lxml.html import fromstring
|
21 |
#from transformers import pipeline
|
22 |
-
from torch import multiprocessing as mp, nn
|
23 |
-
#from torch.multiprocessing import Pool
|
24 |
-
#from pathos.multiprocessing import ProcessPool as Pool
|
25 |
-
#from pathos.threading import ThreadPool as Pool
|
26 |
#from diffusers.pipelines.flux import FluxPipeline
|
27 |
from diffusers.utils import export_to_gif, load_image
|
28 |
from diffusers.models.modeling_utils import ModelMixin
|
|
|
14 |
# external
|
15 |
|
16 |
#import spaces
|
|
|
17 |
import gradio as gr
|
18 |
import numpy as np
|
19 |
from lxml.html import fromstring
|
20 |
#from transformers import pipeline
|
|
|
|
|
|
|
|
|
21 |
#from diffusers.pipelines.flux import FluxPipeline
|
22 |
from diffusers.utils import export_to_gif, load_image
|
23 |
from diffusers.models.modeling_utils import ModelMixin
|