Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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=
|
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=
|
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=
|
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)
|