Spaces:
Sleeping
Sleeping
GenAILearniverse
commited on
Commit
•
0e6b4e0
1
Parent(s):
afc6602
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,7 @@ def generate_audio(text):
|
|
36 |
# Return the path to the saved audio file
|
37 |
return "output.wav"
|
38 |
|
|
|
39 |
def caption_my_image(pil_image):
|
40 |
semantics = caption_image(images=pil_image)[0]['generated_text']
|
41 |
return generate_audio(semantics)
|
|
|
36 |
# Return the path to the saved audio file
|
37 |
return "output.wav"
|
38 |
|
39 |
+
|
40 |
def caption_my_image(pil_image):
|
41 |
semantics = caption_image(images=pil_image)[0]['generated_text']
|
42 |
return generate_audio(semantics)
|