Skip to content

Problems importing helper_functions #94

Answered by mrdbourke
DanteNoguez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DanteNoguez,

Looks like you might be downloading the HTML version of the helper_functions.py file.

If you delete the file and try again but using the "raw" GitHub link:

it should work.

For example, using the code from 02. PyTorch Neural Network Classification section 4:

import requests
from pathlib import Path 

# Download helper functions from Learn PyTorch repo (if not already downloaded)
if Path("helper_functions.py").is_file():
  print("helper_functions…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DanteNoguez
Comment options

@mrdbourke
Comment options

Answer selected by DanteNoguez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants