Metadata-Version: 2.1
Name: streamlit-copilot
Version: 0.0.1
Summary: Streamlit component: Copilot text autocomplete
Home-page: https://github.com/sobkevich/streamlit-copilot
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: streamlit (>=0.63)

# Streamlit Copilot

![Copilot light](resources/copilot_light.gif)
![Copilot dark](resources/copilot_dark.gif)


To run the component locally:
1. Ensure that you have correct versions of Node and NPM installed:
- npm version: `6.14.13`
- node version: `14.17.3`
2. Run the following command in the root directory of the project:
```
cd streamlit_copilot/frontend
npm install
npm run start
```
3. Create venv
4. Install streamlit
```
pip install streamlit
```
5. In `streamlit_copilot/__init__.py` file:
- replace `"YOUR_API_URL"` with the actual URL of the API that provides LLM text completion responses ([example](https://llama-cpp-python.readthedocs.io/en/latest/install/macos/))
- set `_RELEASE = False`
6. Run the following command in the root directory of the project (in a separate terminal):
```
streamlit run streamlit_copilot/__init__.py
```
