{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "c8ec6da5", "metadata": {}, "outputs": [], "source": [ "import ipywidgets as widgets\n", "from IPython.display import display, Markdown, HTML\n", "\n", "# Define the title and links to the Jupyter notebooks\n", "title = \"NLP Demos for the NDIS Project\"\n", "note = \"To access the demos, please use Token: huggingface\"\n", "links = {\n", " \"Page 1 summary topics demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/zero-shot-classification-pbsp-page1-eval-demo-hf.ipynb\",\n", " \"Page 1 communication types demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/zero-shot-classification-pbsp-page1-communication-eval-demo-hf.ipynb\",\n", " \"Page 1 life events demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/zero-shot-classification-pbsp-page1-life-eval-demo-hf.ipynb\",\n", " \"Page 1 likes & dislikes demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page1-likes-eval-demo-hf.ipynb\",\n", " \"Page 2 behavioural assessment approaches demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/few-shot-classification-pbsp-page2-eval-demo-hf.ipynb\",\n", " \"Page 2 non-behavioural assessments demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/few-shot-classification-pbsp-page2-question2-eval-demo-hf.ipynb\",\n", " \"Page 2 direct / indirect data collection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page2-direct-indirct-data-collection-eval-demo-hf.ipynb\",\n", " \"Page 3 behaviour detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-regex-scores-paragraphs-bhvr-freq-dur-sev-eval-hf.ipynb\",\n", " \"Page 3 A-B-C Chain detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-based-scores-paragraphs-event-trig-bhvr-cons-eval-hf.ipynb\",\n", " \"Page 3 functional hypothesis with gain / avoid attention detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-based-scores-paragraphs-func-gain-avoid-eval-hf.ipynb\",\n", " \"Page 3 functional hypothesis with gain / avoid sensory stimulation detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-based-scores-paragraphs-func-gain-avoid-sensory-eval-hf.ipynb\",\n", " \"Page 3 functional hypothesis with gain / avoid people detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-based-scores-paragraphs-func-gain-avoid-people-eval-hf.ipynb\",\n", " \"Page 3 functional hypothesis with gain / avoid social interactions detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-based-scores-paragraphs-func-gain-avoid-social-eval-hf.ipynb\",\n", " \"Page 3 functional hypothesis with avoid activities, situations, stimuli, others detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-based-scores-paragraphs-func-avoid-multi-eval-hf.ipynb\",\n", " \"Page 3 functional hypothesis with gain activities, items, others detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/flair-qdrant-distance-based-scores-paragraphs-func-gain-multi-eval-hf\",\n", " \"Page 3 early warning signs detection demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page3-early-warning-signs-v2-eval-demo-hf.ipynb\",\n", " \"Page 3 formulation contextual factors demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page3-formulation-contextual-factors-eval-demo-hf.ipynb\",\n", " \"Page 4 Replacement behaviour demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-replacement-behaviour-eval-demo-hf.ipynb\",\n", " \"Page 4 Safety strategy demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-safety-strategies-eval-demo-hf.ipynb\",\n", " \"Page 4 S.M.A.R.T. goal factors demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/zero-shot-classification-pbsp-page4-smart-demo-eval-hf.ipynb\",\n", " \"Page 4 quality of life goal categories demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/zero-shot-classification-pbsp-page4-q2-quality-of-life-demo-eval-hf.ipynb\",\n", " \"Page 4 debriefing strategies demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-debriefing-strategies-eval-demo-hf.ipynb\",\n", " \"Page 4 restrictive interventions demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-restrictive-intervention-eval-demo-hf.ipynb\",\n", " \"Page 4 setting event, trigger, and other strategies demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-setting-event-trigger-strategy-eval-demo-hf.ipynb\",\n", " \"Page 4 teaching strategy elements demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-skill-teaching-elements-eval-demo-hf.ipynb\",\n", " \"Page 4 reinforcement strategies demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-reinforcement-strategies-eval-demo-hf.ipynb\",\n", " \"Page 4 quality of life enhancement strategies demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-quality-of-life-strategy-eval-demo-hf.ipynb\",\n", " \"Page 4 when to implement strategies demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-when-to-implement-eval-demo-hf.ipynb\",\n", " \"Page 4 unneeded teaching reasons demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page4-unneeded-teaching-reason-eval-demo-hf.ipynb\",\n", " \"Page 5 social validity demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page5-social-validity-eval-demo-hf.ipynb\",\n", " \"Page 5 social validity with person of focus demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page5-social-validity-person-of-focus-eval-demo-hf.ipynb\",\n", " \"Page 5 plan implementation demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page5-plan-implementation-eval-demo-hf.ipynb\",\n", " \"Page 5 outcome measurement demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page5-outcome-measurement-eval-demo-hf.ipynb\",\n", " \"Page 5 plan review demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page5-plan-review-demo-hf.ipynb\",\n", " \"Page 5 restrictive practice categories demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-page5-restrictive-practice-types-eval-demo-hf.ipynb\",\n", " \"Pages 2 & 5 focus person exclusion reasons demo app\": \"https://aammari-jupyter-stacks-voila.hf.space/voila/render/azure-openai-chatgpt-pbsp-pages2-5-exclusion-reason-eval-demo-hf.ipynb\"\n", "}\n", "title_widget = widgets.HTML(\n", " value=f\"

{title}

{note}

\"\n", ")\n", "\n", "# Create a list of links\n", "links_list = [widgets.HTML(value=f\"{name}
\") for name, link in links.items()]\n", "\n", "# Center the links list and add some styling\n", "links_widget = widgets.VBox(\n", " links_list,\n", " layout=widgets.Layout(\n", " justify_content='center',\n", " background_color='#f9f9f9',\n", " padding='20px',\n", " border='1px solid #dddddd',\n", " border_radius='10px'\n", " ),\n", " style={\n", " 'font-family': 'Arial',\n", " 'font-size': '18px',\n", " 'line-height': '28px',\n", " }\n", ")\n", "\n", "# Add CSS style to highlight links on hover\n", "links_widget.add_class('highlight-on-hover')\n", "\n", "# Define CSS style for links\n", "css = \"\"\"\n", ".highlight-on-hover a {\n", " color: blue !important;\n", " transition: background-color 0.3s ease;\n", "}\n", "\n", ".highlight-on-hover a:hover {\n", " background-color: yellow !important;\n", "}\n", "\"\"\"\n", "\n", "# Apply the CSS style to the page\n", "style = widgets.HTML(''.format(css))\n", "display(style, title_widget, links_widget)\n" ] } ], "metadata": { "hide_input": false, "kernelspec": { "display_name": "Python 3.9 (Argilla)", "language": "python", "name": "argilla" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.16" } }, "nbformat": 4, "nbformat_minor": 5 }