Skip to content

Commit

Permalink
Dolma viewer niceties
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Dec 3, 2024
1 parent fe04db8 commit 1eda300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdelfin/viewer/dolmaviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def process_document(data, s3_client, template, output_dir):
html_content = template.render(id=id_, pages=pages, s3_link=s3_link)

# Write the HTML content to a file
filename = f'{id_}.html'
filename = f'{source_file.replace("s3://", "").replace("/", "_").replace(".", "_")}.html'
filepath = os.path.join(output_dir, filename)
with open(filepath, 'w', encoding='utf-8') as f:
f.write(html_content)
Expand Down

0 comments on commit 1eda300

Please sign in to comment.