Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -58,6 +58,7 @@ def generate_random_string(length):
|
|
58 |
characters = string.ascii_letters + string.digits
|
59 |
return ''.join(random.choice(characters) for _ in range(length))
|
60 |
|
|
|
61 |
def Pipe(english_prompt, height, width):
|
62 |
return Pipe(
|
63 |
english_prompt,
|
@@ -68,7 +69,6 @@ def Pipe(english_prompt, height, width):
|
|
68 |
guidance_scale=10
|
69 |
)
|
70 |
|
71 |
-
@spaces.GPU
|
72 |
def infer(prompt):
|
73 |
name = generate_random_string(12)+".png"
|
74 |
english_prompt = f'TRUE {translate(prompt,"english").upper()}:'
|
|
|
58 |
characters = string.ascii_letters + string.digits
|
59 |
return ''.join(random.choice(characters) for _ in range(length))
|
60 |
|
61 |
+
@spaces.GPU
|
62 |
def Pipe(english_prompt, height, width):
|
63 |
return Pipe(
|
64 |
english_prompt,
|
|
|
69 |
guidance_scale=10
|
70 |
)
|
71 |
|
|
|
72 |
def infer(prompt):
|
73 |
name = generate_random_string(12)+".png"
|
74 |
english_prompt = f'TRUE {translate(prompt,"english").upper()}:'
|