Yaron Koresh commited on
Commit
1f07b49
·
verified ·
1 Parent(s): 452af5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
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 ""