How can I run
from helper_functions import print_llm_response
in Colab?
Thanks.
How can I run
from helper_functions import print_llm_response
in Colab?
Thanks.
You need to download the helper_functions.py file from the assignment, and upload it into your Colab project.
But it would help if you mention which course and assignment you’re asking about.
Thanks. The course is “AI Python for Beginners: Basics of AI Python Coding”. The import statement occurs in the first cell of the next-to-last lesson.
Would you explain how to download the helper_functions.py file. I don’t see an option to download that file anywhere in the lesson.
Thanks again for your help.
Confusingly, there are two versions of that course.
The original version is a Short Course hosted on the DLAI learning platform.
The new version is offered though Coursera.
Which one are you asking about?
Thanks.
For example in the lecture and exercise “Variables”, in the Jupyter notebook, click on “File” and then “Open”.
You will see a list of files.
If you select the checkbox next to a file name, a “Download” button will appear.
Thanks Tom, I really wanted this to work, but when I clicked File, I got this.
Very different from the image you showed.
This is the website URL: https://learn.deeplearning.ai/courses/ai-python-for-beginners/lesson/9/variables
Here’s a bigger picture of the same thing.
Oops. Looks like I ignored the Open step. The first time I tried it, I got an empty page. But the second time, I got a list of two files:
Lesson_8.ipynb. When clicked, this creates the lesson page.
Running
3 months ago14.7 kB
helper_functions.py. When clicked, this shows the relevant Python code.
Thanks! Sorry about my previous confusion.
– Russ
No problem!