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