Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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 |
-
|
57 |
-
|
|
|
|
|
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
|