Skip to content

Commit

Permalink
refactor: Enhance file processing and output naming conventions
Browse files Browse the repository at this point in the history
- Add file filter to only process files ending with ".md"
- Modify output file names to use the ".txt" extension instead of ".md"
  • Loading branch information
johnnyhuy committed Apr 14, 2024
1 parent 63aa19e commit 6c35b3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transcribe_me/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ def main():
os.remove(file)

for filename in os.listdir(output_folder):
if not filename.endswith(".md"):
continue

output_file = os.path.join(output_folder, f"{transcription_name}.txt")
openai_models = config["openai"]["models"]
anthropic_models = config["anthropic"]["models"]
Expand Down

0 comments on commit 6c35b3a

Please sign in to comment.