whispy commited on
Commit
2d188e9
1 Parent(s): 3132e18

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -53,8 +53,10 @@ def transcribe(microphone):
53
  print("Building image .....")
54
  #image = image_ppl(translate).images[0]
55
  #image = image_ppl(translate, num_inference_steps=15)["sample"]
56
- image = image_ppl(translate, num_inference_steps=15).images
57
- print("Image: ", image)
 
 
58
  #image.save("text-to-image.png")
59
 
60
  return warn_output + text, translate, image
 
53
  print("Building image .....")
54
  #image = image_ppl(translate).images[0]
55
  #image = image_ppl(translate, num_inference_steps=15)["sample"]
56
+ prompt = "a photograph of an astronaut riding a horse"
57
+ image = image_ppl(prompt, num_inference_steps=15)
58
+ print("Image output: ", image)
59
+ print("Image: ", image.images)
60
  #image.save("text-to-image.png")
61
 
62
  return warn_output + text, translate, image