Output cleaning

This commit is contained in:
Daniel Fernandez Colon
2025-09-04 00:59:04 +02:00
parent 4e3005c6a7
commit d870067b42

View File

@@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "a07e7793-b8f5-44f4-aded-5562f633271a",
"metadata": {},
"outputs": [],
@@ -36,19 +36,10 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "2118e80a-6181-4488-95cf-c9da0500ea56",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"OpenAI API Key exists and begins sk-proj-\n",
"Google API Key exists and begins AIzaSyA7\n"
]
}
],
"outputs": [],
"source": [
"# Load environment variables in a file called .env\n",
"# Print the key prefixes to help with any debugging\n",
@@ -70,7 +61,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "8ddc4764-e7f6-4512-8210-51bbfefbb3a9",
"metadata": {},
"outputs": [],
@@ -82,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "91bfd734-9c5e-4993-808e-b66489a92d4d",
"metadata": {},
"outputs": [],
@@ -95,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "d9ee11ae-23e2-42cc-b63d-b446f6d83c99",
"metadata": {},
"outputs": [],
@@ -108,7 +99,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "a01d270e-f62e-41b3-8e46-ac173d7a1493",
"metadata": {},
"outputs": [],
@@ -119,7 +110,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "4e85c8ed-3ba4-4283-8480-6979b0d5602f",
"metadata": {},
"outputs": [],
@@ -131,7 +122,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "8ee0c887-a63f-48dd-8eaf-68b0bf9263b6",
"metadata": {},
"outputs": [],
@@ -146,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "5f1ae918-cb99-4e60-80d3-37e16e514f55",
"metadata": {},
"outputs": [],
@@ -161,7 +152,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "2d499f2a-23b2-4fff-9d2d-f2333cbd109a",
"metadata": {},
"outputs": [],
@@ -189,7 +180,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "b58079a8-8def-4fa6-8273-34bf8eeb8cb5",
"metadata": {},
"outputs": [],
@@ -217,7 +208,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "7ab7fc93-3540-48e5-bbe0-3e9ad2bbce15",
"metadata": {},
"outputs": [],
@@ -227,7 +218,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "678ccc37-c034-4035-bc3c-00fa8bcd8e64",
"metadata": {},
"outputs": [],
@@ -248,7 +239,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"id": "2a1138e4-f849-4557-a74c-f9feb1572854",
"metadata": {},
"outputs": [],
@@ -273,39 +264,10 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": null,
"id": "d39344cc-9e89-47a0-9249-2e182091ee43",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"* Running on local URL: http://127.0.0.1:7860\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": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"gr.ChatInterface(fn=chat, type=\"messages\").launch()"
]