Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,36 +1,32 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
import sys
|
11 |
-
import warnings
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
deps()
|
34 |
|
35 |
warnings.filterwarnings("ignore")
|
36 |
root = logging.getLogger()
|
|
|
1 |
+
import os
|
2 |
+
import subprocess
|
3 |
+
import logging
|
4 |
+
import re
|
5 |
+
import random
|
6 |
+
import string
|
7 |
+
import requests
|
8 |
+
import sys
|
9 |
+
import warnings
|
|
|
|
|
10 |
|
11 |
+
import spaces
|
12 |
+
import torch
|
13 |
+
import gradio as gr
|
14 |
+
import numpy as np
|
15 |
+
from lxml.html import fromstring
|
16 |
+
#from transformers import pipeline
|
17 |
+
from torch import multiprocessing as mp, nn
|
18 |
+
#from torch.multiprocessing import Pool
|
19 |
+
#from pathos.multiprocessing import ProcessPool as Pool
|
20 |
+
#from pathos.threading import ThreadPool as Pool
|
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
|
24 |
+
from huggingface_hub import hf_hub_download
|
25 |
+
from safetensors.torch import load_file, save_file
|
26 |
+
from diffusers import DiffusionPipeline, AnimateDiffPipeline, MotionAdapter, EulerDiscreteScheduler, DDIMScheduler, StableDiffusionXLPipeline, UNet2DConditionModel, AutoencoderKL, UNet3DConditionModel
|
27 |
+
#import jax
|
28 |
+
#import jax.numpy as jnp
|
29 |
+
from numba import jit,njit
|
|
|
|
|
30 |
|
31 |
warnings.filterwarnings("ignore")
|
32 |
root = logging.getLogger()
|