How can I get the .env source file?

Hi,
How can I get the .env source file ?

you mean you want to list environment variables with values in the course environment , if my understand is correct,
Try print(os.environ) this will print all keys and values for a given notebook.

If you are looking for the Inference end points, the one used in the notebook are routed through aws and might not work locally,
Take the model name from notebook ex: sshleifer/distilbart-cnn-12-6
Search it in huggingface.co website
Click on deploy button → API Inference and you can see the code to call model or you can copy the endpoint
Ideally it will be ,
https://api-inference.huggingface.co/models//
example: https://api-inference.huggingface.co/models/sshleifer/distilbart-cnn-12-6

1 Like

Thx, I got it