Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,10 @@ import jax.numpy as jnp
|
|
24 |
import sys
|
25 |
import warnings
|
26 |
|
|
|
|
|
|
|
|
|
27 |
warnings.filterwarnings("ignore")
|
28 |
sys.stderr = Suppress()
|
29 |
|
@@ -86,14 +90,6 @@ function custom(){
|
|
86 |
}
|
87 |
"""
|
88 |
|
89 |
-
#def forest_schnell():
|
90 |
-
# PIPE = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16, token=os.getenv("hf_token")).to("cuda")
|
91 |
-
# return PIPE
|
92 |
-
|
93 |
-
class DevNull:
|
94 |
-
def write(self, msg):
|
95 |
-
pass
|
96 |
-
|
97 |
def translate(text,lang):
|
98 |
if text == None or lang == None:
|
99 |
return ""
|
|
|
24 |
import sys
|
25 |
import warnings
|
26 |
|
27 |
+
class Suppress:
|
28 |
+
def write(self, msg):
|
29 |
+
pass
|
30 |
+
|
31 |
warnings.filterwarnings("ignore")
|
32 |
sys.stderr = Suppress()
|
33 |
|
|
|
90 |
}
|
91 |
"""
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
def translate(text,lang):
|
94 |
if text == None or lang == None:
|
95 |
return ""
|