Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from huggingface_hub import hf_hub_download
|
|
5 |
import spaces
|
6 |
from PIL import Image
|
7 |
import requests
|
8 |
-
from
|
9 |
|
10 |
translator = Translator()
|
11 |
|
@@ -36,7 +36,7 @@ def generate_image(prompt, ckpt="4-Step"):
|
|
36 |
global loaded
|
37 |
print(prompt, ckpt)
|
38 |
|
39 |
-
print(translator.translate(prompt,
|
40 |
|
41 |
checkpoint = checkpoints[ckpt][0]
|
42 |
num_inference_steps = checkpoints[ckpt][1]
|
|
|
5 |
import spaces
|
6 |
from PIL import Image
|
7 |
import requests
|
8 |
+
from translatepy import Translator
|
9 |
|
10 |
translator = Translator()
|
11 |
|
|
|
36 |
global loaded
|
37 |
print(prompt, ckpt)
|
38 |
|
39 |
+
print(translator.translate(prompt, 'English'))
|
40 |
|
41 |
checkpoint = checkpoints[ckpt][0]
|
42 |
num_inference_steps = checkpoints[ckpt][1]
|