infra: rm unused # noqa violations (#22049)

Updating #21137
This commit is contained in:
Bagatur
2024-05-22 15:21:08 -07:00
committed by GitHub
parent 45ed5f3f51
commit 50186da0a1
149 changed files with 212 additions and 214 deletions

View File

@@ -19,15 +19,15 @@ url = (
)
# Check if file is present in the current directory
if not os.path.exists(file_name):
print(f"'{file_name}' not found. Downloading...") # noqa: T201
print(f"'{file_name}' not found. Downloading...")
# Download the file
response = requests.get(url)
response.raise_for_status() # Raise an exception for HTTP errors
with open(file_name, "wb") as f:
f.write(response.content)
print(f"'{file_name}' has been downloaded.") # noqa: T201
print(f"'{file_name}' has been downloaded.")
else:
print(f"'{file_name}' already exists in the current directory.") # noqa: T201
print(f"'{file_name}' already exists in the current directory.")
# Add the LLM downloaded from HF
model_path = file_name