Skip to content

Commit

Permalink
Update place_a_dockerfile_in_current_eos_repo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelduranfrigola committed May 10, 2023
1 parent 3cf5c26 commit 5f09780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/place_a_dockerfile_in_current_eos_repo.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import os
import sys
import requests
import shutil

model_id = sys.argv[1]

if os.path.exists("Dockerfile"):
os.move("Dockerfile", "Dockerfile_legacy")
shutil.move("Dockerfile", "Dockerfile_legacy")

def download_file(url, filename):
r = requests.get(url, allow_redirects=True)
Expand Down

0 comments on commit 5f09780

Please sign in to comment.