getrecordswithphrase is a yield function. can you make that each yield I write to file…
- User
get_records_with_phrase is a yield function. can you make that each yield I write to file so I dont use insane enough memory def generate_utterances_csv() -> None: record_data = [] for record, phrase_text, confirmation_id in get_records_with_phrase(): record_data.append(dict( UUID=record.id, Audio_file_path_title=record.blob_name, Speaker_id=confirmation_id, Utterance_start=record.speech_start_ms, Utterance_end=record.speech_end_ms, Utterance_txt=phrase_text, ))
df = pd.DataFrame(record_data) df.to_csv('utterances.csv', index=False, encoding='utf-8-sig') Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.