vilarin commited on
Commit
9c40ca8
1 Parent(s): 9b5fc32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def generate_image(
51
  seed = int(seed)
52
  print(f'prompt:{prompt}')
53
 
54
- text = str(translator.translate(prompt['text'], 'English'))
55
 
56
  generator = torch.Generator().manual_seed(seed)
57
 
 
51
  seed = int(seed)
52
  print(f'prompt:{prompt}')
53
 
54
+ text = str(translator.translate(prompt, 'English'))
55
 
56
  generator = torch.Generator().manual_seed(seed)
57