@ -5,6 +5,10 @@
"id": "ddfa9ae6-69fe-444a-b994-8c4c5970a7ec",
"id": "ddfa9ae6-69fe-444a-b994-8c4c5970a7ec",
"metadata": {},
"metadata": {},
"source": [
"source": [
"# Student Contribution\n",
"\n",
"An awesome variation that includes a tool to make a booking! Thank you! -- Ed\n",
"\n",
"# Project - Airline AI Assistant with Booking Tool\n",
"# Project - Airline AI Assistant with Booking Tool\n",
"\n",
"\n",
"We'll now bring together what we've learned to make an AI Customer Support assistant for an Airline"
"We'll now bring together what we've learned to make an AI Customer Support assistant for an Airline"
@ -12,7 +16,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1 ,
"execution_count": null ,
"id": "8b50bbe2-c0b1-49c3-9a5c-1ba7efa2bcb4",
"id": "8b50bbe2-c0b1-49c3-9a5c-1ba7efa2bcb4",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -29,7 +33,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 2 ,
"execution_count": null ,
"id": "747e8786-9da8-4342-b6c9-f5f69c2e22ae",
"id": "747e8786-9da8-4342-b6c9-f5f69c2e22ae",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -44,7 +48,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 3 ,
"execution_count": null ,
"id": "0a521d84-d07c-49ab-a0df-d6451499ed97",
"id": "0a521d84-d07c-49ab-a0df-d6451499ed97",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -66,7 +70,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 4 ,
"execution_count": null ,
"id": "0696acb1-0b05-4dc2-80d5-771be04f1fb2",
"id": "0696acb1-0b05-4dc2-80d5-771be04f1fb2",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -83,7 +87,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 5 ,
"execution_count": null ,
"id": "4afceded-7178-4c05-8fa6-9f2085e6a344",
"id": "4afceded-7178-4c05-8fa6-9f2085e6a344",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -109,7 +113,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 6 ,
"execution_count": null ,
"id": "6996ab93",
"id": "6996ab93",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -148,7 +152,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 7 ,
"execution_count": null ,
"id": "6d62733e",
"id": "6d62733e",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -169,7 +173,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 8 ,
"execution_count": null ,
"id": "f671dbb3",
"id": "f671dbb3",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -187,7 +191,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 9 ,
"execution_count": null ,
"id": "77ae8c75",
"id": "77ae8c75",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -198,7 +202,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 10 ,
"execution_count": null ,
"id": "b0992986-ea09-4912-a076-8e5603ee631f",
"id": "b0992986-ea09-4912-a076-8e5603ee631f",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -253,7 +257,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 11 ,
"execution_count": null ,
"id": "ce9b0744-9c78-408d-b9df-9f6fd9ed78cf",
"id": "ce9b0744-9c78-408d-b9df-9f6fd9ed78cf",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -278,57 +282,10 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 12 ,
"execution_count": null ,
"id": "f4be8a71-b19e-4c2f-80df-f59ff2661f14",
"id": "f4be8a71-b19e-4c2f-80df-f59ff2661f14",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [],
{
"name": "stdout",
"output_type": "stream",
"text": [
"Running on local URL: http://127.0.0.1:7860\n",
"\n",
"To create a public link, set `share=True` in `launch()`.\n"
]
},
{
"data": {
"text/html": [
"<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": []
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/abdul.meral/Desktop/courses/llm2/venv/lib/python3.10/site-packages/gradio/analytics.py:106: UserWarning: IMPORTANT: You are using gradio version 4.44.1, however version 5.0.1 is available, please upgrade. \n",
"--------\n",
" warnings.warn(\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Tool get_ticket_price called for Paris\n",
"Tool get_ticket_price called for Paris\n"
]
}
],
"source": [
"source": [
"gr.ChatInterface(fn=chat).launch()"
"gr.ChatInterface(fn=chat).launch()"
]
]
@ -344,7 +301,7 @@
],
],
"metadata": {
"metadata": {
"kernelspec": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel) ",
"language": "python",
"language": "python",
"name": "python3"
"name": "python3"
},
},
@ -358,7 +315,7 @@
"name": "python",
"name": "python",
"nbconvert_exporter": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"pygments_lexer": "ipython3",
"version": "3.10.15 "
"version": "3.11.10 "
}
}
},
},
"nbformat": 4,
"nbformat": 4,