Browse Source

week2 exercise without outpout

pull/18/head
Sanjay Semwal 6 months ago
parent
commit
53601d6c2b
  1. 106
      week2/week2 EXERCISE.ipynb

106
week2/week2 EXERCISE.ipynb

@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "a07e7793-b8f5-44f4-aded-5562f633271a",
"metadata": {},
"outputs": [],
@ -36,18 +36,10 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "3ec1f21d-f043-43ca-8cdd-1f96328cf626",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"OpenAI API Key exists and begins sk-proj-\n"
]
}
],
"outputs": [],
"source": [
"# Initialization\n",
"\n",
@ -65,7 +57,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "9eb2a0b7-771f-4140-9921-e7b2fb6829ae",
"metadata": {},
"outputs": [],
@ -77,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "48ee97bf-f2ad-4ea3-b8a8-10686e56f9a6",
"metadata": {},
"outputs": [],
@ -94,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "20f1bae2-633b-4e69-accb-fcd99a452ea3",
"metadata": {},
"outputs": [],
@ -120,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "e0b28d2f-8f33-4627-99d6-7588d1d07077",
"metadata": {},
"outputs": [],
@ -140,7 +132,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "b5edcb58-06f6-47b9-8afd-25f786552862",
"metadata": {},
"outputs": [],
@ -166,7 +158,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "c9bae64c-6f58-4eea-8db6-7117572f6ef3",
"metadata": {},
"outputs": [],
@ -180,7 +172,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "6884b0db-2158-4bab-a492-56a8d7a20190",
"metadata": {},
"outputs": [],
@ -200,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "64b3bc28-a45a-46d1-ab52-5c8868f68381",
"metadata": {},
"outputs": [],
@ -222,7 +214,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "1eb4a6a2-2c69-4633-a51e-da6a6ee0e96b",
"metadata": {},
"outputs": [],
@ -233,7 +225,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "0f95bf11-0b05-424d-b721-f27551ef33f9",
"metadata": {},
"outputs": [],
@ -258,7 +250,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "b2b5f074-b19c-401b-bdf8-9414b2a81fd0",
"metadata": {},
"outputs": [],
@ -290,76 +282,10 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "9db28315-7aae-4a44-8711-73d12272e5e9",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"* Running on local URL: http://127.0.0.1:7867\n",
"\n",
"To create a public link, set `share=True` in `launch()`.\n"
]
},
{
"data": {
"text/html": [
"<div><iframe src=\"http://127.0.0.1:7867/\" 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": 14,
"metadata": {},
"output_type": "execute_result"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Input #0, wav, from '/var/folders/w_/f1q2tn493fng_1vt_6bpj99w0000gp/T/tmp4yl_2_h3.wav':\n",
" Duration: 00:00:01.99, bitrate: 384 kb/s\n",
" Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 24000 Hz, 1 channels, s16, 384 kb/s\n",
" 1.93 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B -0.02 M-A: 0.000 fd= 0 aq= 53KB vq= 0KB sq= 0B 0.21 M-A: -0.000 fd= 0 aq= 45KB vq= 0KB sq= 0B 0.44 M-A: 0.000 fd= 0 aq= 33KB vq= 0KB sq= 0B 0.64 M-A: -0.000 fd= 0 aq= 21KB vq= 0KB sq= 0B 0.87 M-A: 0.000 fd= 0 aq= 13KB vq= 0KB sq= 0B 1.11 M-A: -0.000 fd= 0 aq= 1KB vq= 0KB sq= 0B 1.34 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B 1.57 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B 1.80 M-A: -0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B "
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Tool get_ticket_price called for New Delhi\n",
"Tool get_flight_booking_status for New Delhi\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Input #0, wav, from '/var/folders/w_/f1q2tn493fng_1vt_6bpj99w0000gp/T/tmpimvkj3fh.wav':\n",
" Duration: 00:00:04.46, bitrate: 384 kb/s\n",
" Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 24000 Hz, 1 channels, s16, 384 kb/s\n",
" 4.38 M-A: -0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B 0.01 M-A: 0.000 fd= 0 aq= 104KB vq= 0KB sq= 0B 0.21 M-A: 0.000 fd= 0 aq= 104KB vq= 0KB sq= 0B 0.41 M-A: -0.000 fd= 0 aq= 104KB vq= 0KB sq= 0B 0.64 M-A: 0.000 fd= 0 aq= 100KB vq= 0KB sq= 0B 0.88 M-A: 0.000 fd= 0 aq= 104KB vq= 0KB sq= 0B 1.11 M-A: 0.000 fd= 0 aq= 104KB vq= 0KB sq= 0B 1.31 M-A: 0.000 fd= 0 aq= 104KB vq= 0KB sq= 0B 1.51 M-A: 0.000 fd= 0 aq= 97KB vq= 0KB sq= 0B 1.72 M-A: 0.000 fd= 0 aq= 89KB vq= 0KB sq= 0B 1.92 M-A: -0.000 fd= 0 aq= 81KB vq= 0KB sq= 0B 2.15 M-A: 0.000 fd= 0 aq= 69KB vq= 0KB sq= 0B 2.39 M-A: 0.000 fd= 0 aq= 57KB vq= 0KB sq= 0B 2.62 M-A: 0.000 fd= 0 aq= 45KB vq= 0KB sq= 0B 2.82 M-A: 0.000 fd= 0 aq= 37KB vq= 0KB sq= 0B 3.05 M-A: 0.000 fd= 0 aq= 25KB vq= 0KB sq= 0B 3.28 M-A: 0.000 fd= 0 aq= 17KB vq= 0KB sq= 0B 3.48 M-A: 0.000 fd= 0 aq= 5KB vq= 0KB sq= 0B 3.71 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B 3.92 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B 4.15 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B 4.35 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B "
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
}
],
"outputs": [],
"source": [
"# More involved Gradio code as we're not using the preset Chat interface!\n",
"# Passing in inbrowser=True in the last line will cause a Gradio window to pop up immediately.\n",

Loading…
Cancel
Save