{ "cells": [ { "cell_type": "markdown", "id": "8ec2fef2", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# Creating a Functional Conversational Chatbot\n", "* **Created by:** Eric Martinez\n", "* **For:** Software Engineering 2\n", "* **At:** University of Texas Rio-Grande Valley" ] }, { "cell_type": "markdown", "id": "cd292e78", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "## Tutorial: A Basic Conversational Chatbot with LLM (has limitations)" ] }, { "cell_type": "markdown", "id": "dce44841", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "#### Installing Dependencies" ] }, { "cell_type": "code", "execution_count": 8, "id": "1bae55e3", "metadata": { "slideshow": { "slide_type": "fragment" } }, "outputs": [], "source": [ "!pip -q install --upgrade gradio\n", "!pip -q install --upgrade openai" ] }, { "cell_type": "markdown", "id": "f762bbca", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "#### Creating a basic Chatbot UI using Gradio" ] }, { "cell_type": "code", "execution_count": 30, "id": "feb92318", "metadata": { "slideshow": { "slide_type": "fragment" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Running on local URL: http://127.0.0.1:7884\n", "Running on public URL: https://0f4cb905f030007a42.gradio.live\n", "\n", "This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces\n" ] }, { "data": { "text/html": [ "
" ], "text/plain": [ "