Skip to content

Commit

Permalink
fix: Fix conditional for including specific files
Browse files Browse the repository at this point in the history
- Optimize file filtering logic in main.py
- Ensure that files ending with ".md" are included in the processing flow
  • Loading branch information
johnnyhuy committed Apr 15, 2024
1 parent 6c35b3a commit f85925a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transcribe_me/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def main():
os.remove(file)

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

output_file = os.path.join(output_folder, f"{transcription_name}.txt")
Expand Down

0 comments on commit f85925a

Please sign in to comment.