Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def generate_random_string(length):
|
|
59 |
@spaces.GPU(duration=12)
|
60 |
def infer(prompt):
|
61 |
name = generate_random_string(12)+".png"
|
62 |
-
english_prompt = f'
|
63 |
print(f'Final prompt: {english_prompt}')
|
64 |
image = pipe(english_prompt).images[0].save(name)
|
65 |
return name
|
|
|
59 |
@spaces.GPU(duration=12)
|
60 |
def infer(prompt):
|
61 |
name = generate_random_string(12)+".png"
|
62 |
+
english_prompt = f'TRUE {translate(prompt,"english").upper()}:'
|
63 |
print(f'Final prompt: {english_prompt}')
|
64 |
image = pipe(english_prompt).images[0].save(name)
|
65 |
return name
|