dirctory and path
Browse files- App/TTS/utils/Pi.py +1 -1
App/TTS/utils/Pi.py
CHANGED
@@ -152,7 +152,7 @@ class PiAIClient:
|
|
152 |
print(response.status)
|
153 |
file_name = str(uuid.uuid4()) + ".mp3"
|
154 |
file_path = os.path.join(self.dir, file_name)
|
155 |
-
os.makedirs(
|
156 |
if response.status == 200:
|
157 |
with open(file_path, "wb") as file:
|
158 |
async for chunk in response.content.iter_chunked(128):
|
|
|
152 |
print(response.status)
|
153 |
file_name = str(uuid.uuid4()) + ".mp3"
|
154 |
file_path = os.path.join(self.dir, file_name)
|
155 |
+
os.makedirs(self.dir, exist_ok=True)
|
156 |
if response.status == 200:
|
157 |
with open(file_path, "wb") as file:
|
158 |
async for chunk in response.content.iter_chunked(128):
|