Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nerfacc
Commits
4f7965c9
Unverified
Commit
4f7965c9
authored
Apr 06, 2023
by
Ruilong Li(李瑞龙)
Committed by
GitHub
Apr 06, 2023
Browse files
Update run_aws_listing.py
parent
01416ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/run_aws_listing.py
scripts/run_aws_listing.py
+2
-2
No files found.
scripts/run_aws_listing.py
View file @
4f7965c9
...
@@ -13,7 +13,7 @@ args = parser.parse_args()
...
@@ -13,7 +13,7 @@ args = parser.parse_args()
ROOT_URL
=
f
"https://
{
args
.
bucket
}
.s3.
{
args
.
region
}
.amazonaws.com/whl"
ROOT_URL
=
f
"https://
{
args
.
bucket
}
.s3.
{
args
.
region
}
.amazonaws.com/whl"
html
=
"<!DOCTYPE html>
\n
<html>
\n
<body>
\n
{}
\n
</body>
\n
</html>"
html
=
"<!DOCTYPE html>
\n
<html>
\n
<body>
\n
{}
\n
</body>
\n
</html>"
href
=
' <a href="{}">{}</a><br/>'
href
=
' <a href="{}">{}</a><br/>'
args
=
{
html_
args
=
{
"ContentType"
:
"text/html"
,
"ContentType"
:
"text/html"
,
"CacheControl"
:
"max-age=300"
,
"CacheControl"
:
"max-age=300"
,
"ACL"
:
"public-read"
,
"ACL"
:
"public-read"
,
...
@@ -46,7 +46,7 @@ index_html = html.format(
...
@@ -46,7 +46,7 @@ index_html = html.format(
with
open
(
"index.html"
,
"w"
)
as
f
:
with
open
(
"index.html"
,
"w"
)
as
f
:
f
.
write
(
index_html
)
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
():
for
torch_version
,
wheel_names
in
wheels_dict
.
items
():
torch_version_html
=
html
.
format
(
torch_version_html
=
html
.
format
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment