{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# UniqueChat\n", "\n", "[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Unique50101/uniquechat/blob/main/UniqueChat.ipynb) [![Launch Jupyter](https://img.shields.io/badge/Jupyter-launch-F37626?logo=jupyter&logoColor=white)](https://mybinder.org/v2/gh/Unique50101/uniquechat/main?urlpath=lab%2Ftree%2FUniqueChat.ipynb) [![Open in VS Code](https://img.shields.io/badge/VS_Code-open-007ACC)](https://vscode.dev/github/Unique50101/uniquechat/blob/main/UniqueChat.ipynb)\n", "\n", "Run the cells in order. The first run downloads the chat model. Send a message below the final cell." ] }, { "cell_type": "code", "metadata": {}, "source": [ "%pip -q install --upgrade unique-interface\n", "%pip -q install \"uniquechat[notebook]==0.1.1\"" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": {}, "source": [ "try:\n", " from google.colab import output\n", "except ImportError:\n", " pass\n", "else:\n", " output.enable_custom_widget_manager()" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": {}, "source": [ "from uniquechat.notebook import launch_chat\n", "\n", "panel = launch_chat()\n", "panel.set_links(\n", " public_url=\"https://unique50101-uniquechat.static.hf.space/index.html\",\n", " private_url=\"https://huggingface.co/spaces/unique50101/UniqueChat-Private\",\n", ");" ], "execution_count": null, "outputs": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" } }, "nbformat": 4, "nbformat_minor": 4 }