Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -217,10 +217,16 @@ def function(Textbox, Textbox2, Textbox3, Dropdown):
|
|
217 |
}
|
218 |
)
|
219 |
output = output["audio_out"]
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
except Exception as e:
|
225 |
print(traceback.format_exc())
|
226 |
return "Please Wait!"
|
|
|
217 |
}
|
218 |
)
|
219 |
output = output["audio_out"]
|
220 |
+
audio_data = base64.b64decode(output)
|
221 |
+
return audio data
|
222 |
+
|
223 |
+
# Save the audio to an MP3 file
|
224 |
+
# mp3_path = "output.mp3"
|
225 |
+
# with open(mp3_path, "wb") as f:
|
226 |
+
# f.write(audio_data)
|
227 |
+
|
228 |
+
# # Return the path to the MP3 file
|
229 |
+
# return mp3_path
|
230 |
except Exception as e:
|
231 |
print(traceback.format_exc())
|
232 |
return "Please Wait!"
|