vilarin commited on
Commit
63b6eaf
1 Parent(s): 4c03817

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 googletrans import Translator
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, dest='en'))
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]