Mbonea commited on
Commit
5e51a54
·
1 Parent(s): 57bd9ff

dirctory and path

Browse files
Files changed (1) hide show
  1. 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(file_path, 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):
 
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):