I am using snowflake snowsight to build an streamlit app.
I need to import the replicate package so I have tried the two approaches:
Approach 1:
- I have installed the replicate package which is of format .zip.
- Then I have place my replicate.zip in the internal stage associated with the streamlit app in snowflake.
- In the packages drop down on the top left corner of the streamlit app, I have selected the stage packages and gave the path to my package.
- But when I tried to write import replicate in my code it is throwing me “No module found error”.
Approch 2:
- I tried editing the environment.yml file in the snowflake stage which is associated with the streamlit app like this:
Whatever method I try it is throwing me error .
How do I make the packages install and work in the snowflake snowsight for my streamlit app??