Mod 3 clarifai problem

I’m not able to understand what I have to do to in views.py file.
I have done the necessary changes in the clarifai_suggestions_tag.py file.
Also I’m getting an unused variable image_url error.

Hi @anshima03
Looks like you are facing challenges in 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

please help me with the view.py file

You have to call the getTagSuggestions function in this from the clarifaiTagSuggestions python file.
Store it as a list of tags.
That’s it and your task is done :slight_smile:

I have done exactly what you have said and im also getting the list of tags But now my one test case is not passing. It is saying index out of range error.

You just have to collect the tags and pass them to other methods. In the above screenshot, in def post method call the clarifai service again to obtain tags.

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.