whispy commited on
Commit
3da8fbb
1 Parent(s): 742f042

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def transcribe(microphone, file_upload):
47
  translate = translate[0]["translation_text"]
48
  print("Translate 2: ", translate)
49
  print("Building image .....")
50
- image = image_ppl(translate).images[0]
 
51
  print("Image: ", image)
52
  image.save("text-to-image.png")
53
 
 
47
  translate = translate[0]["translation_text"]
48
  print("Translate 2: ", translate)
49
  print("Building image .....")
50
+ #image = image_ppl(translate).images[0]
51
+ image = image_ppl(translate)["sample"]
52
  print("Image: ", image)
53
  image.save("text-to-image.png")
54