Yaron Koresh commited on
Commit
8af1f7c
·
verified ·
1 Parent(s): 8f78275

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -22,8 +22,6 @@ from diffusers.utils import load_image
22
  #import jax
23
  #import jax.numpy as jnp
24
 
25
- pp1=pipe_t2i()
26
- pp2=pipe_i2i()
27
  result=[]
28
 
29
  def port_inc():
@@ -46,6 +44,9 @@ def pipe_i2i():
46
  PIPE.unet = torch.compile(PIPE.unet, mode="reduce-overhead", fullgraph=True)
47
  return PIPE
48
 
 
 
 
49
  def translate(text,lang):
50
  if text == None or lang == None:
51
  return ""
 
22
  #import jax
23
  #import jax.numpy as jnp
24
 
 
 
25
  result=[]
26
 
27
  def port_inc():
 
44
  PIPE.unet = torch.compile(PIPE.unet, mode="reduce-overhead", fullgraph=True)
45
  return PIPE
46
 
47
+ pp1=pipe_t2i()
48
+ pp2=pipe_i2i()
49
+
50
  def translate(text,lang):
51
  if text == None or lang == None:
52
  return ""