tresdtres commited on
Commit
8033ee8
Β·
1 Parent(s): 6a64925

Upload Colab_Recursive_Word_Eliminator.ipynb

Browse files
Files changed (1) hide show
  1. Colab_Recursive_Word_Eliminator.ipynb +261 -0
Colab_Recursive_Word_Eliminator.ipynb ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "source": [
6
+ "pip install gradio"
7
+ ],
8
+ "metadata": {
9
+ "id": "f5MZmZgEWPn0",
10
+ "outputId": "a6cf4020-0180-4992-f0ea-cdee67b791ca",
11
+ "colab": {
12
+ "base_uri": "https://localhost:8080/"
13
+ }
14
+ },
15
+ "id": "f5MZmZgEWPn0",
16
+ "execution_count": 1,
17
+ "outputs": [
18
+ {
19
+ "output_type": "stream",
20
+ "name": "stdout",
21
+ "text": [
22
+ "Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
23
+ "Collecting gradio\n",
24
+ " Downloading gradio-3.34.0-py3-none-any.whl (20.0 MB)\n",
25
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m20.0/20.0 MB\u001b[0m \u001b[31m62.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
26
+ "\u001b[?25hCollecting aiofiles (from gradio)\n",
27
+ " Downloading aiofiles-23.1.0-py3-none-any.whl (14 kB)\n",
28
+ "Collecting aiohttp (from gradio)\n",
29
+ " Downloading aiohttp-3.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)\n",
30
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.0/1.0 MB\u001b[0m \u001b[31m58.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
31
+ "\u001b[?25hRequirement already satisfied: altair>=4.2.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (4.2.2)\n",
32
+ "Collecting fastapi (from gradio)\n",
33
+ " Downloading fastapi-0.97.0-py3-none-any.whl (56 kB)\n",
34
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m57.0/57.0 kB\u001b[0m \u001b[31m5.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
35
+ "\u001b[?25hCollecting ffmpy (from gradio)\n",
36
+ " Downloading ffmpy-0.3.0.tar.gz (4.8 kB)\n",
37
+ " Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
38
+ "Collecting gradio-client>=0.2.6 (from gradio)\n",
39
+ " Downloading gradio_client-0.2.6-py3-none-any.whl (288 kB)\n",
40
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m288.3/288.3 kB\u001b[0m \u001b[31m30.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
41
+ "\u001b[?25hCollecting httpx (from gradio)\n",
42
+ " Downloading httpx-0.24.1-py3-none-any.whl (75 kB)\n",
43
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m75.4/75.4 kB\u001b[0m \u001b[31m8.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
44
+ "\u001b[?25hCollecting huggingface-hub>=0.14.0 (from gradio)\n",
45
+ " Downloading huggingface_hub-0.15.1-py3-none-any.whl (236 kB)\n",
46
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m236.8/236.8 kB\u001b[0m \u001b[31m20.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
47
+ "\u001b[?25hRequirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from gradio) (3.1.2)\n",
48
+ "Requirement already satisfied: markdown-it-py[linkify]>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (2.2.0)\n",
49
+ "Requirement already satisfied: markupsafe in /usr/local/lib/python3.10/dist-packages (from gradio) (2.1.2)\n",
50
+ "Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from gradio) (3.7.1)\n",
51
+ "Collecting mdit-py-plugins<=0.3.3 (from gradio)\n",
52
+ " Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)\n",
53
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m50.5/50.5 kB\u001b[0m \u001b[31m4.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
54
+ "\u001b[?25hRequirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from gradio) (1.22.4)\n",
55
+ "Collecting orjson (from gradio)\n",
56
+ " Downloading orjson-3.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (136 kB)\n",
57
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m137.0/137.0 kB\u001b[0m \u001b[31m12.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
58
+ "\u001b[?25hRequirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from gradio) (1.5.3)\n",
59
+ "Requirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from gradio) (8.4.0)\n",
60
+ "Requirement already satisfied: pydantic in /usr/local/lib/python3.10/dist-packages (from gradio) (1.10.7)\n",
61
+ "Collecting pydub (from gradio)\n",
62
+ " Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n",
63
+ "Requirement already satisfied: pygments>=2.12.0 in /usr/local/lib/python3.10/dist-packages (from gradio) (2.14.0)\n",
64
+ "Collecting python-multipart (from gradio)\n",
65
+ " Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)\n",
66
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m45.7/45.7 kB\u001b[0m \u001b[31m3.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
67
+ "\u001b[?25hRequirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from gradio) (6.0)\n",
68
+ "Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from gradio) (2.27.1)\n",
69
+ "Collecting semantic-version (from gradio)\n",
70
+ " Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n",
71
+ "Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from gradio) (4.5.0)\n",
72
+ "Collecting uvicorn>=0.14.0 (from gradio)\n",
73
+ " Downloading uvicorn-0.22.0-py3-none-any.whl (58 kB)\n",
74
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.3/58.3 kB\u001b[0m \u001b[31m6.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
75
+ "\u001b[?25hCollecting websockets>=10.0 (from gradio)\n",
76
+ " Downloading websockets-11.0.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)\n",
77
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m129.9/129.9 kB\u001b[0m \u001b[31m12.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
78
+ "\u001b[?25hRequirement already satisfied: entrypoints in /usr/local/lib/python3.10/dist-packages (from altair>=4.2.0->gradio) (0.4)\n",
79
+ "Requirement already satisfied: jsonschema>=3.0 in /usr/local/lib/python3.10/dist-packages (from altair>=4.2.0->gradio) (4.3.3)\n",
80
+ "Requirement already satisfied: toolz in /usr/local/lib/python3.10/dist-packages (from altair>=4.2.0->gradio) (0.12.0)\n",
81
+ "Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from gradio-client>=0.2.6->gradio) (2023.4.0)\n",
82
+ "Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from gradio-client>=0.2.6->gradio) (23.1)\n",
83
+ "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.14.0->gradio) (3.12.0)\n",
84
+ "Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.14.0->gradio) (4.65.0)\n",
85
+ "Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.10/dist-packages (from markdown-it-py[linkify]>=2.0.0->gradio) (0.1.2)\n",
86
+ "Collecting linkify-it-py<3,>=1 (from markdown-it-py[linkify]>=2.0.0->gradio)\n",
87
+ " Downloading linkify_it_py-2.0.2-py3-none-any.whl (19 kB)\n",
88
+ "Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.10/dist-packages (from pandas->gradio) (2.8.2)\n",
89
+ "Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->gradio) (2022.7.1)\n",
90
+ "Requirement already satisfied: click>=7.0 in /usr/local/lib/python3.10/dist-packages (from uvicorn>=0.14.0->gradio) (8.1.3)\n",
91
+ "Collecting h11>=0.8 (from uvicorn>=0.14.0->gradio)\n",
92
+ " Downloading h11-0.14.0-py3-none-any.whl (58 kB)\n",
93
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.3/58.3 kB\u001b[0m \u001b[31m6.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
94
+ "\u001b[?25hRequirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->gradio) (23.1.0)\n",
95
+ "Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->gradio) (2.0.12)\n",
96
+ "Collecting multidict<7.0,>=4.5 (from aiohttp->gradio)\n",
97
+ " Downloading multidict-6.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)\n",
98
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m114.5/114.5 kB\u001b[0m \u001b[31m9.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
99
+ "\u001b[?25hCollecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->gradio)\n",
100
+ " Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)\n",
101
+ "Collecting yarl<2.0,>=1.0 (from aiohttp->gradio)\n",
102
+ " Downloading yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (268 kB)\n",
103
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m268.8/268.8 kB\u001b[0m \u001b[31m22.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
104
+ "\u001b[?25hCollecting frozenlist>=1.1.1 (from aiohttp->gradio)\n",
105
+ " Downloading frozenlist-1.3.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149 kB)\n",
106
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m149.6/149.6 kB\u001b[0m \u001b[31m13.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
107
+ "\u001b[?25hCollecting aiosignal>=1.1.2 (from aiohttp->gradio)\n",
108
+ " Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)\n",
109
+ "Collecting starlette<0.28.0,>=0.27.0 (from fastapi->gradio)\n",
110
+ " Downloading starlette-0.27.0-py3-none-any.whl (66 kB)\n",
111
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m67.0/67.0 kB\u001b[0m \u001b[31m6.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
112
+ "\u001b[?25hRequirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from httpx->gradio) (2022.12.7)\n",
113
+ "Collecting httpcore<0.18.0,>=0.15.0 (from httpx->gradio)\n",
114
+ " Downloading httpcore-0.17.2-py3-none-any.whl (72 kB)\n",
115
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m72.5/72.5 kB\u001b[0m \u001b[31m8.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
116
+ "\u001b[?25hRequirement already satisfied: idna in /usr/local/lib/python3.10/dist-packages (from httpx->gradio) (3.4)\n",
117
+ "Requirement already satisfied: sniffio in /usr/local/lib/python3.10/dist-packages (from httpx->gradio) (1.3.0)\n",
118
+ "Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->gradio) (1.0.7)\n",
119
+ "Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib->gradio) (0.11.0)\n",
120
+ "Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib->gradio) (4.39.3)\n",
121
+ "Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->gradio) (1.4.4)\n",
122
+ "Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->gradio) (3.0.9)\n",
123
+ "Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->gradio) (1.26.15)\n",
124
+ "Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.10/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx->gradio) (3.6.2)\n",
125
+ "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /usr/local/lib/python3.10/dist-packages (from jsonschema>=3.0->altair>=4.2.0->gradio) (0.19.3)\n",
126
+ "Collecting uc-micro-py (from linkify-it-py<3,>=1->markdown-it-py[linkify]>=2.0.0->gradio)\n",
127
+ " Downloading uc_micro_py-1.0.2-py3-none-any.whl (6.2 kB)\n",
128
+ "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.1->pandas->gradio) (1.16.0)\n",
129
+ "Building wheels for collected packages: ffmpy\n",
130
+ " Building wheel for ffmpy (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
131
+ " Created wheel for ffmpy: filename=ffmpy-0.3.0-py3-none-any.whl size=4694 sha256=6181d8caadcf627a877be220866343ef5752de97dc212fc2ce1e8dcf1852898f\n",
132
+ " Stored in directory: /root/.cache/pip/wheels/0c/c2/0e/3b9c6845c6a4e35beb90910cc70d9ac9ab5d47402bd62af0df\n",
133
+ "Successfully built ffmpy\n",
134
+ "Installing collected packages: pydub, ffmpy, websockets, uc-micro-py, semantic-version, python-multipart, orjson, multidict, h11, frozenlist, async-timeout, aiofiles, yarl, uvicorn, starlette, mdit-py-plugins, linkify-it-py, huggingface-hub, httpcore, aiosignal, httpx, fastapi, aiohttp, gradio-client, gradio\n",
135
+ "Successfully installed aiofiles-23.1.0 aiohttp-3.8.4 aiosignal-1.3.1 async-timeout-4.0.2 fastapi-0.97.0 ffmpy-0.3.0 frozenlist-1.3.3 gradio-3.34.0 gradio-client-0.2.6 h11-0.14.0 httpcore-0.17.2 httpx-0.24.1 huggingface-hub-0.15.1 linkify-it-py-2.0.2 mdit-py-plugins-0.3.3 multidict-6.0.4 orjson-3.9.1 pydub-0.25.1 python-multipart-0.0.6 semantic-version-2.10.0 starlette-0.27.0 uc-micro-py-1.0.2 uvicorn-0.22.0 websockets-11.0.3 yarl-1.9.2\n"
136
+ ]
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "cell_type": "code",
142
+ "execution_count": 2,
143
+ "id": "89dd0b88",
144
+ "metadata": {
145
+ "id": "89dd0b88",
146
+ "outputId": "c2d00020-1166-4f3d-d96e-b3c56e4c0b00",
147
+ "colab": {
148
+ "base_uri": "https://localhost:8080/",
149
+ "height": 616
150
+ }
151
+ },
152
+ "outputs": [
153
+ {
154
+ "output_type": "stream",
155
+ "name": "stdout",
156
+ "text": [
157
+ "Colab notebook detected. To show errors in colab notebook, set debug=True in launch()\n",
158
+ "Note: opening Chrome Inspector may crash demo inside Colab notebooks.\n",
159
+ "\n",
160
+ "To create a public link, set `share=True` in `launch()`.\n"
161
+ ]
162
+ },
163
+ {
164
+ "output_type": "display_data",
165
+ "data": {
166
+ "text/plain": [
167
+ "<IPython.core.display.Javascript object>"
168
+ ],
169
+ "application/javascript": [
170
+ "(async (port, path, width, height, cache, element) => {\n",
171
+ " if (!google.colab.kernel.accessAllowed && !cache) {\n",
172
+ " return;\n",
173
+ " }\n",
174
+ " element.appendChild(document.createTextNode(''));\n",
175
+ " const url = await google.colab.kernel.proxyPort(port, {cache});\n",
176
+ "\n",
177
+ " const external_link = document.createElement('div');\n",
178
+ " external_link.innerHTML = `\n",
179
+ " <div style=\"font-family: monospace; margin-bottom: 0.5rem\">\n",
180
+ " Running on <a href=${new URL(path, url).toString()} target=\"_blank\">\n",
181
+ " https://localhost:${port}${path}\n",
182
+ " </a>\n",
183
+ " </div>\n",
184
+ " `;\n",
185
+ " element.appendChild(external_link);\n",
186
+ "\n",
187
+ " const iframe = document.createElement('iframe');\n",
188
+ " iframe.src = new URL(path, url).toString();\n",
189
+ " iframe.height = height;\n",
190
+ " iframe.allow = \"autoplay; camera; microphone; clipboard-read; clipboard-write;\"\n",
191
+ " iframe.width = width;\n",
192
+ " iframe.style.border = 0;\n",
193
+ " element.appendChild(iframe);\n",
194
+ " })(7860, \"/\", \"100%\", 500, false, window.element)"
195
+ ]
196
+ },
197
+ "metadata": {}
198
+ }
199
+ ],
200
+ "source": [
201
+ "import gradio as gr\n",
202
+ "# from gradio.components import FilePicker, Textbox\n",
203
+ "\n",
204
+ "def eliminar_palabras_recursivas(archivo, palabras, ruta_guardado):\n",
205
+ " with open(archivo.name, 'r') as f:\n",
206
+ " lines = f.readlines()\n",
207
+ "\n",
208
+ " with open(ruta_guardado, 'w') as f:\n",
209
+ " for line in lines:\n",
210
+ " line = line.strip()\n",
211
+ " palabras_linea = line.split(', ')\n",
212
+ " palabras_filtradas = [palabra for palabra in palabras_linea if palabra not in palabras]\n",
213
+ " line_modificada = ', '.join(palabras_filtradas)\n",
214
+ " f.write(line_modificada + '\\n')\n",
215
+ "\n",
216
+ "def interfaz():\n",
217
+ " archivo = gr.File(label=\"input file\")\n",
218
+ " palabras = gr.Textbox(label=\"Words to remove (separated by commas)\")\n",
219
+ " ruta_guardado = gr.Textbox(label=\"Save Path\")\n",
220
+ " boton = gr.Button(label=\"Remove recursive words\")\n",
221
+ " gr.Interface(fn=eliminar_palabras_recursivas, inputs=[archivo, palabras, ruta_guardado], outputs=None, title=\"Recursive Word Eliminator\").launch()\n",
222
+ "\n",
223
+ "interfaz()\n"
224
+ ]
225
+ },
226
+ {
227
+ "cell_type": "code",
228
+ "execution_count": null,
229
+ "id": "9180e5ae",
230
+ "metadata": {
231
+ "id": "9180e5ae"
232
+ },
233
+ "outputs": [],
234
+ "source": []
235
+ }
236
+ ],
237
+ "metadata": {
238
+ "kernelspec": {
239
+ "display_name": "Python 3 (ipykernel)",
240
+ "language": "python",
241
+ "name": "python3"
242
+ },
243
+ "language_info": {
244
+ "codemirror_mode": {
245
+ "name": "ipython",
246
+ "version": 3
247
+ },
248
+ "file_extension": ".py",
249
+ "mimetype": "text/x-python",
250
+ "name": "python",
251
+ "nbconvert_exporter": "python",
252
+ "pygments_lexer": "ipython3",
253
+ "version": "3.10.9"
254
+ },
255
+ "colab": {
256
+ "provenance": []
257
+ }
258
+ },
259
+ "nbformat": 4,
260
+ "nbformat_minor": 5
261
+ }