Browse Source

clear outputs

pull/152/head
iammarshall 3 months ago
parent
commit
6b969ab179
  1. 114
      week4/community-contributions/day4_extra_deepseek_and_hf_inference_provider_added.ipynb

114
week4/community-contributions/day4_extra_deepseek_and_hf_inference_provider_added.ipynb

@ -39,7 +39,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": null,
"id": "e610bf56-a46e-4aff-8de1-ab49d62b1ad3", "id": "e610bf56-a46e-4aff-8de1-ab49d62b1ad3",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -62,18 +62,10 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": null,
"id": "4f672e1c-87e9-4865-b760-370fa605e614", "id": "4f672e1c-87e9-4865-b760-370fa605e614",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [],
{
"name": "stdout",
"output_type": "stream",
"text": [
"Successfully loaded token beginning hf_gI\n"
]
}
],
"source": [ "source": [
"# environment\n", "# environment\n",
"\n", "\n",
@ -90,7 +82,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": null,
"id": "8aa149ed-9298-4d69-8fe2-8f5de0f667da", "id": "8aa149ed-9298-4d69-8fe2-8f5de0f667da",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -135,7 +127,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": null,
"id": "6896636f-923e-4a2c-9d6c-fac07828a201", "id": "6896636f-923e-4a2c-9d6c-fac07828a201",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -147,7 +139,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": null,
"id": "8e7b3546-57aa-4c29-bc5d-f211970d04eb", "id": "8e7b3546-57aa-4c29-bc5d-f211970d04eb",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -162,7 +154,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6, "execution_count": null,
"id": "c6190659-f54c-4951-bef4-4960f8e51cc4", "id": "c6190659-f54c-4951-bef4-4960f8e51cc4",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -176,7 +168,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": null,
"id": "71e1ba8c-5b05-4726-a9f3-8d8c6257350b", "id": "71e1ba8c-5b05-4726-a9f3-8d8c6257350b",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -191,7 +183,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": null,
"id": "e7d2fea8-74c6-4421-8f1e-0e76d5b201b9", "id": "e7d2fea8-74c6-4421-8f1e-0e76d5b201b9",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -208,7 +200,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": null,
"id": "7cd84ad8-d55c-4fe0-9eeb-1895c95c4a9d", "id": "7cd84ad8-d55c-4fe0-9eeb-1895c95c4a9d",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -238,7 +230,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": null,
"id": "8047295c-ec4a-489c-8dad-79db73a2dfca", "id": "8047295c-ec4a-489c-8dad-79db73a2dfca",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -255,7 +247,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 11, "execution_count": null,
"id": "a1cbb778-fa57-43de-b04b-ed523f396c38", "id": "a1cbb778-fa57-43de-b04b-ed523f396c38",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -345,7 +337,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 12, "execution_count": null,
"id": "c3b497b3-f569-420e-b92e-fb0f49957ce0", "id": "c3b497b3-f569-420e-b92e-fb0f49957ce0",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -449,7 +441,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 13, "execution_count": null,
"id": "0be9f47d-5213-4700-b0e2-d444c7c738c0", "id": "0be9f47d-5213-4700-b0e2-d444c7c738c0",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -492,7 +484,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 15, "execution_count": null,
"id": "fcb30458-1023-41d7-bc9a-7e95d5e782aa", "id": "fcb30458-1023-41d7-bc9a-7e95d5e782aa",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -508,7 +500,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 16, "execution_count": null,
"id": "2f1ae8f5-16c8-40a0-aa18-63b617df078d", "id": "2f1ae8f5-16c8-40a0-aa18-63b617df078d",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -536,40 +528,10 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 17, "execution_count": null,
"id": "f1ddb38e-6b0a-4c37-baa4-ace0b7de887a", "id": "f1ddb38e-6b0a-4c37-baa4-ace0b7de887a",
"metadata": {}, "metadata": {},
"outputs": [ "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": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"with gr.Blocks() as ui:\n", "with gr.Blocks() as ui:\n",
" with gr.Row():\n", " with gr.Row():\n",
@ -586,7 +548,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 18, "execution_count": null,
"id": "19bf2bff-a822-4009-a539-f003b1651383", "id": "19bf2bff-a822-4009-a539-f003b1651383",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -603,7 +565,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 19, "execution_count": null,
"id": "77f3ab5d-fcfb-4d3f-8728-9cacbf833ea6", "id": "77f3ab5d-fcfb-4d3f-8728-9cacbf833ea6",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -621,7 +583,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 20, "execution_count": null,
"id": "9a2274f1-d03b-42c0-8dcc-4ce159b18442", "id": "9a2274f1-d03b-42c0-8dcc-4ce159b18442",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -642,40 +604,10 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 21, "execution_count": null,
"id": "f1303932-160c-424b-97a8-d28c816721b2", "id": "f1303932-160c-424b-97a8-d28c816721b2",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [],
{
"name": "stdout",
"output_type": "stream",
"text": [
"* Running on local URL: http://127.0.0.1:7868\n",
"\n",
"To create a public link, set `share=True` in `launch()`.\n"
]
},
{
"data": {
"text/html": [
"<div><iframe src=\"http://127.0.0.1:7868/\" 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": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"with gr.Blocks(css=css) as ui:\n", "with gr.Blocks(css=css) as ui:\n",
" gr.Markdown(\"## Convert code from Python to C++\")\n", " gr.Markdown(\"## Convert code from Python to C++\")\n",

Loading…
Cancel
Save