Views.py problem in mod 3

  1. Describe the issue briefly
    im getting unused variable image_url error .
    also I’m not unable to understand view.py todo.

  2. How much time have you spent debugging this issue?
    (Please spend at least 15 minutes to resolve the issue on your own before posting a new topic here)

  3. What is your hypothesis?

Hi @anshima03
Looks like you are facing challenges in the current module.

Below is a link to all the FAQ’s for the current module

Below are a few similar topics raised by other users which you might find usefull

Note - This is a BETA Feature,if you find this helpful, kindly let us know.
Feedback link - https://forms.gle/cmxN5pdTXgnwgC986

Kindly mark this as a solution if this has helped you solve your query

Are you using the image url provided in the function?

yes. Im using it. IM getting this error in vies.py file.

Check the view.py file for TODO’s around line 200.

i have seen that but i’m not sure how to correct that error.

What you need to do here is to call the function that you completed in clarifai_tag_suggestions.py, pass the parameters required and then to use the list returned by that function in here.

You just have to call the respective getTags function in views.py and extract the tags from there.

what do i have to do with tags=[ ]
I have written the function clarifai_suggestions_tags(…) and I have returned the tags in that function
so after calling this function in views.py what do i have to do

return the tags you got from the get_tags_suggestion function.

Thanks I have done that now.
But now my one test case is not passing. It is saying index out of range error.
but the tags are printing I can see that.
can you help me with that.

Closing this topic as it has been solved by you yourself. Great job, keep working hard. if its not resolved feel free to un-mark the accepted solution to re-open the topic.