andfanilo / streamlit-named-entity-svelte

Streamlit Component in Svelte, imitates the named recognition demo from Prodigy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Named entity selection in Streamlit + Svelte

Time to test Svelte + Streamlit Component on some Prodigy demo !

Setup

  • Ensure you have Python 3.6+, Node.js, and npm installed.
  • Clone this repo.
  • Create a new Python virtual environment for the template:
$ python3 -m venv venv  # create venv
$ . venv/bin/activate   # activate venv
$ pip install streamlit # install streamlit
  • Initialize and run the component template frontend:
$ cd streamlit_named_entity/frontend
$ npm install    # Install npm dependencies
$ npm run dev  # Start the Webpack dev server
  • From a separate terminal, run the template's Streamlit app:
$ . venv/bin/activate  # activate the venv you created earlier
$ streamlit run streamlit_named_entity/__init__.py  # run the example
  • If all goes well, you should see something like this: Quickstart Success
  • Modify the frontend code at streamlit_named_entity/frontend/.
  • Modify the Python code at streamlit_named_entity/__init__.py.

References

About

Streamlit Component in Svelte, imitates the named recognition demo from Prodigy.

License:MIT License


Languages

Language:TypeScript 56.4%Language:HTML 21.0%Language:JavaScript 9.2%Language:Python 9.1%Language:CSS 4.4%