Skip to content

Commit

Permalink
Addd one-liner to open app from terminal in SiS
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jsummer committed Oct 15, 2024
1 parent fe52031 commit 0fa5a4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Follow [instructions](https://docs.snowflake.com/en/developer-guide/snowflake-cl

2. Deploy app in Streamlit in Snowflake

Run the below command(s) from the project root directory to create all necessary objects in Snowflake.
Run the below command from the project root directory to create all necessary objects in Snowflake.
Before running, replace `<STREAMLIT_WAREHOUSE>` with an available warehouse to power the app.

**Hint**: The owner of the app will be the role specified in your Snowflake CLI connection. To use a different role, append `--role <DESIRED_ROLE>` to the end of the command, replacing `<DESIRED_ROLE>`.
Expand All @@ -43,6 +43,12 @@ Before running, replace `<STREAMLIT_WAREHOUSE>` with an available warehouse to p
snow sql -f sis_setup/app_setup.sql -D "warehouse=<STREAMLIT_WAREHOUSE>"
```

The app, titled Semantic Model Generator can be opened directly in Snowsight. Alternatively, you may run the below command in your terminal to open it.

```bash
snow streamlit get-url SEMANTIC_MODEL_GENERATOR --open --database cortex_analyst_semantics --schema semantic_model_generator
```

3. **OPTIONAL**: Setup Looker Integration

The Semantic Model Generator supports translating metadata from a Looker Explore. To add this functionality to the Streamlit in Snowflake app, we need to create an external access integration to allow Snowflake to reach your Looker instance.
Expand Down

0 comments on commit 0fa5a4e

Please sign in to comment.