Trying to run hugging face model transformer and getting error

Question:

Run a simple hugging face code for learning purpose.

from transformers import pipeline

Create a sentiment analysis pipeline

sentiment_analyzer = pipeline(“sentiment-analysis”)

Analyze the sentiment of a text

result = sentiment_analyzer(“I love this product!”)

Print the result

print(result)

Replit Profile: https://replit.com/@harishmantri1

Running above code and getting exception - Cannot open shared object file, No such file or directoryh

Hey, @harishmantri1 welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

https://replit.com/@harishmantri1/Test#main.py

By the looks of it, you’re just missing a period to specify that it is the current dir.

It should be ./demo/langchain.py

sorry I was playing with changing the main run file, link below with the error I am facing
https://replit.com/@harishmantri1/Test#main.py

Looks like missing files.
Maybe try starting with one of the official huggingface templates so you can just replace what you need to edit.