{ "cells": [ { "cell_type": "raw", "metadata": {}, "source": [ "---\n", "description: Gradio app.py\n", "output-file: app.html\n", "title: app\n", "\n", "---\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "---\n", "\n", "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L23){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", "\n", "### ConversationBot\n", "\n", "> ConversationBot ()\n", "\n", "Initialize self. See help(type(self)) for accurate signature." ], "text/plain": [ "---\n", "\n", "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L23){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", "\n", "### ConversationBot\n", "\n", "> ConversationBot ()\n", "\n", "Initialize self. See help(type(self)) for accurate signature." ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#| echo: false\n", "#| output: asis\n", "show_doc(ConversationBot)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "---\n", "\n", "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L86){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", "\n", "### launch_demo\n", "\n", "> launch_demo ()" ], "text/plain": [ "---\n", "\n", "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L86){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", "\n", "### launch_demo\n", "\n", "> launch_demo ()" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#| echo: false\n", "#| output: asis\n", "show_doc(launch_demo)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Load environment for the demo" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "language": "python" }, "outputs": [], "source": [ "from dotenv import load_dotenv" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "language": "python" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Running on local URL: http://127.0.0.1:7862\n", "\n", "To create a public link, set `share=True` in `launch()`.\n" ] } ], "source": [ "load_dotenv()\n", "launch_demo()" ] } ], "metadata": { "kernelspec": { "display_name": "python3", "language": "python", "name": "python3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 4 }