C5_W3_A3_Trigger word Dectection

I am encountering an issue with my assignment where the cell after Exercise 2 isn’t running. I’ve thoroughly checked my code, and everything seems to be in order. I waited for the code to execute for up to an hour, but it never completed.


To troubleshoot, I copied my code into a new notebook and re-ran all the cells except for the problematic one. All tests passed successfully in the new notebook. However, my assignment isn’t being graded in the original notebook.

To help me assist you,

Please click on my name to start a private message. Then, attach your notebook as a .ipynb file. Please note that mentors cannot access your Coursera Jupyter workspace, so sending the notebook in a .ipynb format is essential.

Why don’t you perform a Lab reset in the graded notebook and place all the code inside that you have solved so far!

Already done

1 Like

In function is_overlapping, the starter code has a break statement which makes code a bit fast. I don’t understand why you’ve removed it.

In function insert_audio_clip, retry isn’t taken into account when looking for a non-overlapping random time segment.

Also, the function is modified at places where it’s not required.

Here’s the comment in the starter code:

    # Step 2: Check if the new segment_time overlaps with one of the previous_segments. If so, keep 
    # picking new segment_time at random until it doesn't overlap. To avoid an endless loop
    # we retry 5 times(≈ 2 lines)

This is your version:

    # Step 2: Check if the new segment_time overlaps with one of the previous_segments. If so, keep 
    # picking new segment_time at random until it doesn't overlap. (≈ 2 lines)

Please follow these steps to refresh your workspace and do it again with the corrections.

2 Likes