Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -52,9 +52,10 @@ def transcribe(microphone):
|
|
| 52 |
print("Translate 2: ", translate)
|
| 53 |
print("Building image .....")
|
| 54 |
#image = image_ppl(translate).images[0]
|
| 55 |
-
image = image_ppl(translate, num_inference_steps=15)["sample"]
|
|
|
|
| 56 |
print("Image: ", image)
|
| 57 |
-
image.save("text-to-image.png")
|
| 58 |
|
| 59 |
return warn_output + text, translate, image
|
| 60 |
|
|
|
|
| 52 |
print("Translate 2: ", translate)
|
| 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)
|
| 57 |
print("Image: ", image)
|
| 58 |
+
#image.save("text-to-image.png")
|
| 59 |
|
| 60 |
return warn_output + text, translate, image
|
| 61 |
|