Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin authored Jan 15, 2025
1 parent fa66830 commit 60a89d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/tasks/src/model-libraries-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ from huggingface_hub import from_pretrained_keras
import tensorflow as tf
import requests
# https://github.com/google-research-datasets/scin
IMAGE_URL = "https://storage.googleapis.com/dx-scin-public-data/dataset/images/3445096909671059178.png"
response = requests.get(IMAGE_URL, stream=True)
# Raise an exception if the request fails
response.raise_for_status()
response = requests.get("https://storage.googleapis.com/dx-scin-public-data/dataset/images/3445096909671059178.png")
# Load the image into a PIL Image object
image = Image.open(response.raw)
Expand Down

0 comments on commit 60a89d5

Please sign in to comment.