Spaces:
Running
Running
Update generate_transcript.py
Browse files- generate_transcript.py +3 -2
generate_transcript.py
CHANGED
@@ -164,7 +164,8 @@ class TranscriptProcessor:
|
|
164 |
if match:
|
165 |
return match.group(0)
|
166 |
return None
|
167 |
-
|
|
|
168 |
def rewrite_transcript(self):
|
169 |
"""
|
170 |
Refines the transcript for TTS, adding expressive elements and saving as a list of tuples.
|
@@ -190,7 +191,7 @@ class TranscriptProcessor:
|
|
190 |
model=self.model_name,
|
191 |
)
|
192 |
|
193 |
-
rewritten_transcript =
|
194 |
|
195 |
# Save the rewritten transcript as a pickle file
|
196 |
with open(self.tts_output_path, 'wb') as f:
|
|
|
164 |
if match:
|
165 |
return match.group(0)
|
166 |
return None
|
167 |
+
|
168 |
+
|
169 |
def rewrite_transcript(self):
|
170 |
"""
|
171 |
Refines the transcript for TTS, adding expressive elements and saving as a list of tuples.
|
|
|
191 |
model=self.model_name,
|
192 |
)
|
193 |
|
194 |
+
rewritten_transcript =chat_completion.choices[0].message.content
|
195 |
|
196 |
# Save the rewritten transcript as a pickle file
|
197 |
with open(self.tts_output_path, 'wb') as f:
|