Streamit Packages import error in snowflake snowsight

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:

  1. I have installed the replicate package which is of format .zip.
  2. Then I have place my replicate.zip in the internal stage associated with the streamlit app in snowflake.
  3. 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.
  4. But when I tried to write import replicate in my code it is throwing me “No module found error”.

Approch 2:

  1. I tried editing the environment.yml file in the snowflake stage which is associated with the streamlit app like this:
    image


    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??

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.