Yaron Koresh commited on
Commit
cd77875
·
verified ·
1 Parent(s): d78e1f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -95,7 +95,7 @@ def generate_random_string(length):
95
  characters = string.ascii_letters + string.digits
96
  return ''.join(random.choice(characters) for _ in range(length))
97
 
98
- @spaces.GPU(duration=35)
99
  def Piper(pipe,_do):
100
  pipe = pipe_t2i()
101
  try:
@@ -112,7 +112,7 @@ def Piper(pipe,_do):
112
  print(e)
113
  return None
114
 
115
- @spaces.GPU(duration=35)
116
  def Piper2(pipe,img,posi,neg):
117
  try:
118
  retu = pipe2(
@@ -125,7 +125,7 @@ def Piper2(pipe,img,posi,neg):
125
  print(e)
126
  return None
127
 
128
- @spaces.GPU(duration=35)
129
  def tok(txt):
130
  toks = pipe.tokenizer(txt)['input_ids']
131
  print(toks)
 
95
  characters = string.ascii_letters + string.digits
96
  return ''.join(random.choice(characters) for _ in range(length))
97
 
98
+ @spaces.GPU(duration=55)
99
  def Piper(pipe,_do):
100
  pipe = pipe_t2i()
101
  try:
 
112
  print(e)
113
  return None
114
 
115
+ @spaces.GPU(duration=55)
116
  def Piper2(pipe,img,posi,neg):
117
  try:
118
  retu = pipe2(
 
125
  print(e)
126
  return None
127
 
128
+ @spaces.GPU(duration=55)
129
  def tok(txt):
130
  toks = pipe.tokenizer(txt)['input_ids']
131
  print(toks)