I’m having issues submiting my assignment.
It says I passed all the tests in the jupyter notebook but when I submit, I get the following error message- There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: name ‘get_llm_response’ is not defined
It is only Exercise 5 that uses the get_llm_response() function.
Why are then exercises 1-4 also getting graded 0/10 for me?
Please help.
please make sure once you have run down all the cells, save your work and then submit.
for best results. Now in the kernel section, first select clear kernel output, restart or reconnect the kernel, then run each cell till end, save your work and then submit
It seems that C1M2 might be experiencing some issues. I completed the lab and encountered the same problem. To confirm whether it was a Coursera issue, I did another lab, which graded successfully. Therefore, it appears that this lab may have a problem. Let’s notify the team and wait for a solution.
Hello, i sorted the code to fit in each point that said insert your code here as the image and the problem was solved, sometime the program evaluator could be a little sensitive, try sorting your code.
After looking at your notebook, your issue is that you have added extra code in the cells, which you were not supposed to, as it has been instructed under the TIPS FOR SUCCESSFUL GRADING OF YOUR ASSIGNMENT: at the beginning of the assignment. The assignments have been designed and structured in a certain way for a reason, and if you were to change it, you’ll end up getting errors as you have seen.
For Exercise 5, you were given:
### START CODE HERE ###
prompt = f"""
# Add your code here
"""
### END CODE HERE ###
print(prompt)
And this is what you did:
### START CODE HERE ###
from helper_functions import get_llm_response
prompt = get_llm_response(f"""
### The prompt you had written
""")
### END CODE HERE ###
print(prompt)
As you can see, not only did you add from helper_functions import get_llm_response in the cell, but also changed
prompt = f"""
to become (added the get_llm_response)
prompt = get_llm_response(f"""
This was not required nor it was part of the instructions of the exercise, hence you are seeing the error in grading.
Fix this and you shall be able to get the grade successfully.
For future assignments, please follow the instructions carefully and only write code that you have been asked to.