Skip to content

Commit

Permalink
Update run_aws_listing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liruilong940607 authored Apr 6, 2023
1 parent 01416ca commit 4f7965c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run_aws_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
ROOT_URL = f"https://{args.bucket}.s3.{args.region}.amazonaws.com/whl"
html = "<!DOCTYPE html>\n<html>\n<body>\n{}\n</body>\n</html>"
href = ' <a href="{}">{}</a><br/>'
args = {
html_args = {
"ContentType": "text/html",
"CacheControl": "max-age=300",
"ACL": "public-read",
Expand Down Expand Up @@ -46,7 +46,7 @@

with open("index.html", "w") as f:
f.write(index_html)
bucket.Object("whl/index.html").upload_file("index.html", args)
bucket.Object("whl/index.html").upload_file("index.html", html_args)

for torch_version, wheel_names in wheels_dict.items():
torch_version_html = html.format(
Expand Down

0 comments on commit 4f7965c

Please sign in to comment.