Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
kiara_plugin.streamlit / apps / components.py
Size: Mime:
# -*- coding: utf-8 -*-
import os

import streamlit as st

import kiara_plugin.streamlit as kst

st.set_page_config(layout="wide")

kst.init()
st.kiara.api.set_active_context("components_doc", create=True)

if "corpus_table" not in st.kiara.api.list_alias_names():
    with st.spinner("Downloading example data ..."):
        pipeline_file = os.path.join(
            os.path.dirname(__file__), "pipelines", "components_doc_onboarding.yaml"
        )
        results = st.kiara.api.run_job(pipeline_file)

        for field_name, value in results.items():
            st.kiara.api.store_value(value, field_name)

st.kiara.component_info()