Skip to content

Commit

Permalink
Solara screenshots (ploomber#150)
Browse files Browse the repository at this point in the history
* arxiv

* gpt4 tokenizer

* fitness

* ocr

* quiz

* keyword
  • Loading branch information
neelasha23 authored Mar 13, 2024
1 parent 6f5c148 commit 0d85c0f
Show file tree
Hide file tree
Showing 18 changed files with 630 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/solara/arxiv-chat/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Arxiv Chat

A chat assistant that can help find academic papers using Arxiv and also allows users to chat with an uploaded article.
A chat assistant that can help find academic papers using Arxiv and also allows users to chat with an uploaded article.

![](screenshot.webp)
87 changes: 87 additions & 0 deletions examples/solara/arxiv-chat/requirements.lock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
annotated-types==0.6.0
anyio==4.3.0
appnope==0.1.4
arxiv==2.1.0
asttokens==2.4.1
attrs==23.2.0
cachetools==5.3.3
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
comm==0.2.2
debugpy==1.8.1
decorator==5.1.1
distro==1.9.0
executing==2.0.1
fastjsonschema==2.19.1
feedparser==6.0.10
filelock==3.13.1
h11==0.14.0
httpcore==1.0.4
httpx==0.27.0
humanize==4.9.0
idna==3.6
ipykernel==6.29.3
ipython==8.22.2
ipyvue==1.10.2
ipyvuetify==1.9.1
ipywidgets==8.1.2
jedi==0.19.1
Jinja2==3.1.3
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
jupyter_client==8.6.1
jupyter_core==5.7.2
jupyterlab_widgets==3.0.10
Markdown==3.5.2
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib-inline==0.1.6
mdurl==0.1.2
nbformat==5.10.2
nest-asyncio==1.6.0
numpy==1.26.4
openai==1.13.3
packaging==24.0
parso==0.8.3
pexpect==4.9.0
platformdirs==4.2.0
prompt-toolkit==3.0.43
psutil==5.9.8
ptyprocess==0.7.0
pure-eval==0.2.2
pydantic==2.6.4
pydantic_core==2.16.3
Pygments==2.17.2
pymdown-extensions==10.7.1
PyMuPDF==1.23.26
PyMuPDFb==1.23.22
python-dateutil==2.9.0.post0
PyYAML==6.0.1
pyzmq==25.1.2
reacton==1.8.3
referencing==0.33.0
regex==2023.12.25
requests==2.31.0
rich==13.7.1
rich-click==1.7.4
rpds-py==0.18.0
scipy==1.12.0
sgmllib3k==1.0.0
six==1.16.0
sniffio==1.3.1
solara==1.25.0
stack-data==0.6.3
starlette==0.37.2
tiktoken==0.6.0
tornado==6.4
tqdm==4.66.2
traitlets==5.14.2
typing_extensions==4.10.0
urllib3==2.2.1
uvicorn==0.28.0
watchdog==4.0.0
watchfiles==0.21.0
wcwidth==0.2.13
websockets==12.0
widgetsnbextension==4.0.10
Binary file added examples/solara/arxiv-chat/screenshot.webp
Binary file not shown.
17 changes: 16 additions & 1 deletion examples/solara/fitness-tracker/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Fitness tracker

An app that can generate a fitness and nutrition plan using an LLM.
An app that can generate a fitness and nutrition plan using an LLM.

![](screenshot.webp)

## Testing locally

Set the below environment variables:

1. `OPENAI_KEY`: OpenAI API Key
2. `SERPERDEV_API_KEY`: [Serper](https://serper.dev/) key

Run the below command:

```bash
solara run app.py
```
116 changes: 116 additions & 0 deletions examples/solara/fitness-tracker/requirements.lock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
anyio==4.3.0
appdirs==1.4.4
appnope==0.1.4
asttokens==2.4.1
attrs==23.2.0
backoff==2.2.1
boilerpy3==1.0.7
cachetools==5.3.3
cattrs==23.2.3
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
comm==0.2.2
debugpy==1.8.1
decorator==5.1.1
docopt==0.6.2
Events==0.5
executing==2.0.1
farm-haystack==1.25.0
fastjsonschema==2.19.1
filelock==3.13.1
fsspec==2024.2.0
h11==0.14.0
httpcore==1.0.4
httpx==0.27.0
huggingface-hub==0.21.4
humanize==4.9.0
idna==3.6
inflect==7.0.0
ipykernel==6.29.3
ipython==8.22.2
ipyvue==1.10.2
ipyvuetify==1.9.1
ipywidgets==8.1.2
jedi==0.19.1
Jinja2==3.1.3
joblib==1.3.2
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
jupyter_client==8.6.1
jupyter_core==5.7.2
jupyterlab_widgets==3.0.10
lazy-imports==0.3.1
Markdown==3.5.2
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib-inline==0.1.6
mdurl==0.1.2
monotonic==1.6
more-itertools==10.2.0
mpmath==1.3.0
nbformat==5.10.2
nest-asyncio==1.6.0
networkx==3.2.1
num2words==0.5.13
numpy==1.26.4
packaging==24.0
pandas==2.2.1
parso==0.8.3
pexpect==4.9.0
pillow==10.2.0
platformdirs==4.2.0
posthog==3.5.0
prompt-toolkit==3.0.43
prompthub-py==4.0.0
psutil==5.9.8
ptyprocess==0.7.0
pure-eval==0.2.2
pydantic==1.10.14
Pygments==2.17.2
pymdown-extensions==10.7.1
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
pytz==2024.1
PyYAML==6.0.1
pyzmq==25.1.2
quantulum3==0.9.0
rank-bm25==0.2.2
reacton==1.8.3
referencing==0.33.0
regex==2023.12.25
requests==2.31.0
requests-cache==0.9.8
rich==13.7.1
rich-click==1.7.4
rpds-py==0.18.0
safetensors==0.4.2
scikit-learn==1.4.1.post1
scipy==1.12.0
six==1.16.0
sniffio==1.3.1
solara==1.25.1
sseclient-py==1.8.0
stack-data==0.6.3
starlette==0.37.2
sympy==1.12
tenacity==8.2.3
threadpoolctl==3.3.0
tiktoken==0.6.0
tokenizers==0.15.2
torch==2.1.1
torchvision==0.16.1
tornado==6.4
tqdm==4.66.2
traitlets==5.14.2
transformers==4.37.2
typing_extensions==4.10.0
tzdata==2024.1
url-normalize==1.4.3
urllib3==2.2.1
uvicorn==0.28.0
watchdog==4.0.0
watchfiles==0.21.0
wcwidth==0.2.13
websockets==12.0
widgetsnbextension==4.0.10
Binary file added examples/solara/fitness-tracker/screenshot.webp
Binary file not shown.
4 changes: 3 additions & 1 deletion examples/solara/gpt-4-tokenizer/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# GPT4 Tokenizer

A Solara app that shows how to use a language model tokenizer to encode and decode and how to search for a token.
A Solara app that shows how to use a language model tokenizer to encode and decode and how to search for a token.

![](screenshot.webp)
76 changes: 76 additions & 0 deletions examples/solara/gpt-4-tokenizer/requirements.lock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
anyio==4.3.0
appnope==0.1.4
asttokens==2.4.1
attrs==23.2.0
cachetools==5.3.3
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
comm==0.2.2
debugpy==1.8.1
decorator==5.1.1
executing==2.0.1
fastjsonschema==2.19.1
filelock==3.13.1
h11==0.14.0
humanize==4.9.0
idna==3.6
ipykernel==6.29.3
ipython==8.22.2
ipyvue==1.10.2
ipyvuetify==1.9.1
ipywidgets==8.1.2
jedi==0.19.1
Jinja2==3.1.3
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
jupyter_client==8.6.1
jupyter_core==5.7.2
jupyterlab_widgets==3.0.10
Markdown==3.5.2
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib-inline==0.1.6
mdurl==0.1.2
nbformat==5.10.2
nest-asyncio==1.6.0
numpy==1.26.4
packaging==24.0
pandas==2.2.1
parso==0.8.3
pexpect==4.9.0
platformdirs==4.2.0
prompt-toolkit==3.0.43
psutil==5.9.8
ptyprocess==0.7.0
pure-eval==0.2.2
Pygments==2.17.2
pymdown-extensions==10.7.1
python-dateutil==2.9.0.post0
pytz==2024.1
PyYAML==6.0.1
pyzmq==25.1.2
reacton==1.8.3
referencing==0.33.0
regex==2023.12.25
requests==2.31.0
rich==13.7.1
rich-click==1.7.4
rpds-py==0.18.0
six==1.16.0
sniffio==1.3.1
solara==1.29.1
stack-data==0.6.3
starlette==0.37.2
tiktoken==0.6.0
tornado==6.4
traitlets==5.14.2
typing_extensions==4.10.0
tzdata==2024.1
urllib3==2.2.1
uvicorn==0.28.0
watchdog==4.0.0
watchfiles==0.21.0
wcwidth==0.2.13
websockets==12.0
widgetsnbextension==4.0.10
Binary file added examples/solara/gpt-4-tokenizer/screenshot.webp
Binary file not shown.
2 changes: 2 additions & 0 deletions examples/solara/keyword-extraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This Solara app is designed for performing keyword extraction from text documents.

![](screenshot.webp)

Currently, it supports the packages `PyTextRank` and `Yake` for extracting the most relevant keywords from the input text.
The extracted keywords can be useful for content analysis, search engine optimization (SEO), and other natural language processing tasks.

Expand Down
Loading

0 comments on commit 0d85c0f

Please sign in to comment.