Uwaish commited on
Commit
176ffb7
·
verified ·
1 Parent(s): 8fcb304

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.ipynb +482 -0
  2. model_joblib +0 -0
  3. requirements.txt +0 -0
app.ipynb ADDED
@@ -0,0 +1,482 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 2,
6
+ "id": "27605526",
7
+ "metadata": {},
8
+ "outputs": [
9
+ {
10
+ "name": "stdout",
11
+ "output_type": "stream",
12
+ "text": [
13
+ "Collecting gradio\n",
14
+ " Obtaining dependency information for gradio from https://files.pythonhosted.org/packages/6e/4d/3883eaf9502c24a78f13ec755e28dc6e71f4f5b050cc9e04efecc5d2dcdd/gradio-5.34.1-py3-none-any.whl.metadata\n",
15
+ " Downloading gradio-5.34.1-py3-none-any.whl.metadata (16 kB)\n",
16
+ "Collecting aiofiles<25.0,>=22.0 (from gradio)\n",
17
+ " Obtaining dependency information for aiofiles<25.0,>=22.0 from https://files.pythonhosted.org/packages/a5/45/30bb92d442636f570cb5651bc661f52b610e2eec3f891a5dc3a4c3667db0/aiofiles-24.1.0-py3-none-any.whl.metadata\n",
18
+ " Downloading aiofiles-24.1.0-py3-none-any.whl.metadata (10 kB)\n",
19
+ "Requirement already satisfied: anyio<5.0,>=3.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (3.5.0)\n",
20
+ "Collecting fastapi<1.0,>=0.115.2 (from gradio)\n",
21
+ " Obtaining dependency information for fastapi<1.0,>=0.115.2 from https://files.pythonhosted.org/packages/59/4a/e17764385382062b0edbb35a26b7cf76d71e27e456546277a42ba6545c6e/fastapi-0.115.13-py3-none-any.whl.metadata\n",
22
+ " Downloading fastapi-0.115.13-py3-none-any.whl.metadata (27 kB)\n",
23
+ "Collecting ffmpy (from gradio)\n",
24
+ " Obtaining dependency information for ffmpy from https://files.pythonhosted.org/packages/cb/2f/932f05d6c63e206baf1cb8ad6034f6eac6fe8dfdae86a74044216d4987fc/ffmpy-0.6.0-py3-none-any.whl.metadata\n",
25
+ " Downloading ffmpy-0.6.0-py3-none-any.whl.metadata (2.9 kB)\n",
26
+ "Collecting gradio-client==1.10.3 (from gradio)\n",
27
+ " Obtaining dependency information for gradio-client==1.10.3 from https://files.pythonhosted.org/packages/ea/72/1e76abc821f8efaaeb2e3bd727a6c97bf87c6a9a0ffacfed0647e587824a/gradio_client-1.10.3-py3-none-any.whl.metadata\n",
28
+ " Downloading gradio_client-1.10.3-py3-none-any.whl.metadata (7.1 kB)\n",
29
+ "Collecting groovy~=0.1 (from gradio)\n",
30
+ " Obtaining dependency information for groovy~=0.1 from https://files.pythonhosted.org/packages/28/27/3d6dcadc8a3214d8522c1e7f6a19554e33659be44546d44a2f7572ac7d2a/groovy-0.1.2-py3-none-any.whl.metadata\n",
31
+ " Downloading groovy-0.1.2-py3-none-any.whl.metadata (6.1 kB)\n",
32
+ "Collecting httpx>=0.24.1 (from gradio)\n",
33
+ " Obtaining dependency information for httpx>=0.24.1 from https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl.metadata\n",
34
+ " Downloading httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)\n",
35
+ "Collecting huggingface-hub>=0.28.1 (from gradio)\n",
36
+ " Obtaining dependency information for huggingface-hub>=0.28.1 from https://files.pythonhosted.org/packages/33/fb/53587a89fbc00799e4179796f51b3ad713c5de6bb680b2becb6d37c94649/huggingface_hub-0.33.0-py3-none-any.whl.metadata\n",
37
+ " Downloading huggingface_hub-0.33.0-py3-none-any.whl.metadata (14 kB)\n",
38
+ "Requirement already satisfied: jinja2<4.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (3.1.2)\n",
39
+ "Requirement already satisfied: markupsafe<4.0,>=2.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (2.1.1)\n",
40
+ "Requirement already satisfied: numpy<3.0,>=1.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (1.26.0)\n",
41
+ "Collecting orjson~=3.0 (from gradio)\n",
42
+ " Obtaining dependency information for orjson~=3.0 from https://files.pythonhosted.org/packages/79/2a/4048700a3233d562f0e90d5572a849baa18ae4e5ce4c3ba6247e4ece57b0/orjson-3.10.18-cp311-cp311-win_amd64.whl.metadata\n",
43
+ " Downloading orjson-3.10.18-cp311-cp311-win_amd64.whl.metadata (43 kB)\n",
44
+ " ---------------------------------------- 0.0/43.0 kB ? eta -:--:--\n",
45
+ " ---------------------------------------- 43.0/43.0 kB 2.0 MB/s eta 0:00:00\n",
46
+ "Requirement already satisfied: packaging in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (23.1)\n",
47
+ "Requirement already satisfied: pandas<3.0,>=1.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (2.0.3)\n",
48
+ "Requirement already satisfied: pillow<12.0,>=8.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (10.0.1)\n",
49
+ "Collecting pydantic<2.12,>=2.0 (from gradio)\n",
50
+ " Obtaining dependency information for pydantic<2.12,>=2.0 from https://files.pythonhosted.org/packages/6a/c0/ec2b1c8712ca690e5d61979dee872603e92b8a32f94cc1b72d53beab008a/pydantic-2.11.7-py3-none-any.whl.metadata\n",
51
+ " Downloading pydantic-2.11.7-py3-none-any.whl.metadata (67 kB)\n",
52
+ " ---------------------------------------- 0.0/68.0 kB ? eta -:--:--\n",
53
+ " ---------------------------------------- 68.0/68.0 kB 3.6 MB/s eta 0:00:00\n",
54
+ "Collecting pydub (from gradio)\n",
55
+ " Obtaining dependency information for pydub from https://files.pythonhosted.org/packages/a6/53/d78dc063216e62fc55f6b2eebb447f6a4b0a59f55c8406376f76bf959b08/pydub-0.25.1-py2.py3-none-any.whl.metadata\n",
56
+ " Downloading pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)\n",
57
+ "Collecting python-multipart>=0.0.18 (from gradio)\n",
58
+ " Obtaining dependency information for python-multipart>=0.0.18 from https://files.pythonhosted.org/packages/45/58/38b5afbc1a800eeea951b9285d3912613f2603bdf897a4ab0f4bd7f405fc/python_multipart-0.0.20-py3-none-any.whl.metadata\n",
59
+ " Downloading python_multipart-0.0.20-py3-none-any.whl.metadata (1.8 kB)\n",
60
+ "Requirement already satisfied: pyyaml<7.0,>=5.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (6.0)\n",
61
+ "Collecting ruff>=0.9.3 (from gradio)\n",
62
+ " Obtaining dependency information for ruff>=0.9.3 from https://files.pythonhosted.org/packages/34/93/8b16034d493ef958a500f17cda3496c63a537ce9d5a6479feec9558f1695/ruff-0.12.0-py3-none-win_amd64.whl.metadata\n",
63
+ " Downloading ruff-0.12.0-py3-none-win_amd64.whl.metadata (26 kB)\n",
64
+ "Collecting safehttpx<0.2.0,>=0.1.6 (from gradio)\n",
65
+ " Obtaining dependency information for safehttpx<0.2.0,>=0.1.6 from https://files.pythonhosted.org/packages/4d/c0/1108ad9f01567f66b3154063605b350b69c3c9366732e09e45f9fd0d1deb/safehttpx-0.1.6-py3-none-any.whl.metadata\n",
66
+ " Downloading safehttpx-0.1.6-py3-none-any.whl.metadata (4.2 kB)\n",
67
+ "Collecting semantic-version~=2.0 (from gradio)\n",
68
+ " Obtaining dependency information for semantic-version~=2.0 from https://files.pythonhosted.org/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version-2.10.0-py2.py3-none-any.whl.metadata\n",
69
+ " Downloading semantic_version-2.10.0-py2.py3-none-any.whl.metadata (9.7 kB)\n",
70
+ "Collecting starlette<1.0,>=0.40.0 (from gradio)\n",
71
+ " Obtaining dependency information for starlette<1.0,>=0.40.0 from https://files.pythonhosted.org/packages/e3/81/c60b35fe9674f63b38a8feafc414fca0da378a9dbd5fa1e0b8d23fcc7a9b/starlette-0.47.0-py3-none-any.whl.metadata\n",
72
+ " Downloading starlette-0.47.0-py3-none-any.whl.metadata (6.2 kB)\n",
73
+ "Collecting tomlkit<0.14.0,>=0.12.0 (from gradio)\n",
74
+ " Obtaining dependency information for tomlkit<0.14.0,>=0.12.0 from https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl.metadata\n",
75
+ " Downloading tomlkit-0.13.3-py3-none-any.whl.metadata (2.8 kB)\n",
76
+ "Collecting typer<1.0,>=0.12 (from gradio)\n",
77
+ " Obtaining dependency information for typer<1.0,>=0.12 from https://files.pythonhosted.org/packages/76/42/3efaf858001d2c2913de7f354563e3a3a2f0decae3efe98427125a8f441e/typer-0.16.0-py3-none-any.whl.metadata\n",
78
+ " Downloading typer-0.16.0-py3-none-any.whl.metadata (15 kB)\n",
79
+ "Requirement already satisfied: typing-extensions~=4.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio) (4.7.1)\n",
80
+ "Collecting uvicorn>=0.14.0 (from gradio)\n",
81
+ " Obtaining dependency information for uvicorn>=0.14.0 from https://files.pythonhosted.org/packages/6d/0d/8adfeaa62945f90d19ddc461c55f4a50c258af7662d34b6a3d5d1f8646f6/uvicorn-0.34.3-py3-none-any.whl.metadata\n",
82
+ " Downloading uvicorn-0.34.3-py3-none-any.whl.metadata (6.5 kB)\n",
83
+ "Requirement already satisfied: fsspec in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from gradio-client==1.10.3->gradio) (2023.9.2)\n",
84
+ "Collecting websockets<16.0,>=10.0 (from gradio-client==1.10.3->gradio)\n",
85
+ " Obtaining dependency information for websockets<16.0,>=10.0 from https://files.pythonhosted.org/packages/98/93/e36c73f78400a65f5e236cd376713c34182e6663f6889cd45a4a04d8f203/websockets-15.0.1-cp311-cp311-win_amd64.whl.metadata\n",
86
+ " Downloading websockets-15.0.1-cp311-cp311-win_amd64.whl.metadata (7.0 kB)\n",
87
+ "Requirement already satisfied: idna>=2.8 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from anyio<5.0,>=3.0->gradio) (3.4)\n",
88
+ "Requirement already satisfied: sniffio>=1.1 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from anyio<5.0,>=3.0->gradio) (1.2.0)\n",
89
+ "Collecting starlette<1.0,>=0.40.0 (from gradio)\n",
90
+ " Obtaining dependency information for starlette<1.0,>=0.40.0 from https://files.pythonhosted.org/packages/8b/0c/9d30a4ebeb6db2b25a841afbb80f6ef9a854fc3b41be131d249a977b4959/starlette-0.46.2-py3-none-any.whl.metadata\n",
91
+ " Downloading starlette-0.46.2-py3-none-any.whl.metadata (6.2 kB)\n",
92
+ "Collecting typing-extensions~=4.0 (from gradio)\n",
93
+ " Obtaining dependency information for typing-extensions~=4.0 from https://files.pythonhosted.org/packages/69/e0/552843e0d356fbb5256d21449fa957fa4eff3bbc135a74a691ee70c7c5da/typing_extensions-4.14.0-py3-none-any.whl.metadata\n",
94
+ " Downloading typing_extensions-4.14.0-py3-none-any.whl.metadata (3.0 kB)\n",
95
+ "Requirement already satisfied: certifi in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from httpx>=0.24.1->gradio) (2023.7.22)\n",
96
+ "Collecting httpcore==1.* (from httpx>=0.24.1->gradio)\n",
97
+ " Obtaining dependency information for httpcore==1.* from https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl.metadata\n",
98
+ " Downloading httpcore-1.0.9-py3-none-any.whl.metadata (21 kB)\n",
99
+ "Collecting h11>=0.16 (from httpcore==1.*->httpx>=0.24.1->gradio)\n",
100
+ " Obtaining dependency information for h11>=0.16 from https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl.metadata\n",
101
+ " Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)\n",
102
+ "Requirement already satisfied: filelock in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from huggingface-hub>=0.28.1->gradio) (3.9.0)\n",
103
+ "Requirement already satisfied: requests in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from huggingface-hub>=0.28.1->gradio) (2.31.0)\n",
104
+ "Requirement already satisfied: tqdm>=4.42.1 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from huggingface-hub>=0.28.1->gradio) (4.65.0)\n",
105
+ "Requirement already satisfied: python-dateutil>=2.8.2 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from pandas<3.0,>=1.0->gradio) (2.8.2)\n",
106
+ "Requirement already satisfied: pytz>=2020.1 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from pandas<3.0,>=1.0->gradio) (2023.3.post1)\n",
107
+ "Requirement already satisfied: tzdata>=2022.1 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from pandas<3.0,>=1.0->gradio) (2023.3)\n",
108
+ "Collecting annotated-types>=0.6.0 (from pydantic<2.12,>=2.0->gradio)\n",
109
+ " Obtaining dependency information for annotated-types>=0.6.0 from https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl.metadata\n",
110
+ " Downloading annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)\n",
111
+ "Collecting pydantic-core==2.33.2 (from pydantic<2.12,>=2.0->gradio)\n",
112
+ " Obtaining dependency information for pydantic-core==2.33.2 from https://files.pythonhosted.org/packages/fe/1b/25b7cccd4519c0b23c2dd636ad39d381abf113085ce4f7bec2b0dc755eb1/pydantic_core-2.33.2-cp311-cp311-win_amd64.whl.metadata\n",
113
+ " Downloading pydantic_core-2.33.2-cp311-cp311-win_amd64.whl.metadata (6.9 kB)\n",
114
+ "Collecting typing-inspection>=0.4.0 (from pydantic<2.12,>=2.0->gradio)\n",
115
+ " Obtaining dependency information for typing-inspection>=0.4.0 from https://files.pythonhosted.org/packages/17/69/cd203477f944c353c31bade965f880aa1061fd6bf05ded0726ca845b6ff7/typing_inspection-0.4.1-py3-none-any.whl.metadata\n",
116
+ " Downloading typing_inspection-0.4.1-py3-none-any.whl.metadata (2.6 kB)\n",
117
+ "Collecting anyio<5.0,>=3.0 (from gradio)\n",
118
+ " Obtaining dependency information for anyio<5.0,>=3.0 from https://files.pythonhosted.org/packages/a1/ee/48ca1a7c89ffec8b6a0c5d02b89c305671d5ffd8d3c94acf8b8c408575bb/anyio-4.9.0-py3-none-any.whl.metadata\n",
119
+ " Downloading anyio-4.9.0-py3-none-any.whl.metadata (4.7 kB)\n",
120
+ "Requirement already satisfied: click>=8.0.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from typer<1.0,>=0.12->gradio) (8.0.4)\n",
121
+ "Collecting shellingham>=1.3.0 (from typer<1.0,>=0.12->gradio)\n",
122
+ " Obtaining dependency information for shellingham>=1.3.0 from https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl.metadata\n",
123
+ " Downloading shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)\n",
124
+ "Collecting rich>=10.11.0 (from typer<1.0,>=0.12->gradio)\n",
125
+ " Obtaining dependency information for rich>=10.11.0 from https://files.pythonhosted.org/packages/0d/9b/63f4c7ebc259242c89b3acafdb37b41d1185c07ff0011164674e9076b491/rich-14.0.0-py3-none-any.whl.metadata\n",
126
+ " Downloading rich-14.0.0-py3-none-any.whl.metadata (18 kB)\n",
127
+ "Requirement already satisfied: colorama in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from click>=8.0.0->typer<1.0,>=0.12->gradio) (0.4.6)\n",
128
+ "Requirement already satisfied: six>=1.5 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio) (1.16.0)\n",
129
+ "Collecting markdown-it-py>=2.2.0 (from rich>=10.11.0->typer<1.0,>=0.12->gradio)\n",
130
+ " Obtaining dependency information for markdown-it-py>=2.2.0 from https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl.metadata\n",
131
+ " Downloading markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)\n",
132
+ "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.15.1)\n",
133
+ "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from requests->huggingface-hub>=0.28.1->gradio) (2.0.4)\n",
134
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\uwais\\anaconda3\\lib\\site-packages (from requests->huggingface-hub>=0.28.1->gradio) (1.26.16)\n",
135
+ "Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio)\n",
136
+ " Obtaining dependency information for mdurl~=0.1 from https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl.metadata\n",
137
+ " Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)\n",
138
+ "Downloading gradio-5.34.1-py3-none-any.whl (54.3 MB)\n",
139
+ " ---------------------------------------- 0.0/54.3 MB ? eta -:--:--\n",
140
+ " ---------------------------------------- 0.5/54.3 MB 16.8 MB/s eta 0:00:04\n",
141
+ " --------------------------------------- 1.2/54.3 MB 12.2 MB/s eta 0:00:05\n",
142
+ " - -------------------------------------- 1.7/54.3 MB 12.1 MB/s eta 0:00:05\n",
143
+ " - -------------------------------------- 2.2/54.3 MB 11.8 MB/s eta 0:00:05\n",
144
+ " - -------------------------------------- 2.6/54.3 MB 12.7 MB/s eta 0:00:05\n",
145
+ " -- ------------------------------------- 3.3/54.3 MB 11.8 MB/s eta 0:00:05\n",
146
+ " -- ------------------------------------- 3.8/54.3 MB 11.6 MB/s eta 0:00:05\n",
147
+ " --- ------------------------------------ 4.4/54.3 MB 12.1 MB/s eta 0:00:05\n",
148
+ " --- ------------------------------------ 4.9/54.3 MB 11.6 MB/s eta 0:00:05\n",
149
+ " --- ------------------------------------ 5.4/54.3 MB 11.5 MB/s eta 0:00:05\n",
150
+ " ---- ----------------------------------- 5.9/54.3 MB 11.5 MB/s eta 0:00:05\n",
151
+ " ---- ----------------------------------- 6.4/54.3 MB 11.4 MB/s eta 0:00:05\n",
152
+ " ----- ---------------------------------- 6.9/54.3 MB 11.3 MB/s eta 0:00:05\n",
153
+ " ----- ---------------------------------- 7.4/54.3 MB 11.2 MB/s eta 0:00:05\n",
154
+ " ----- ---------------------------------- 7.8/54.3 MB 11.4 MB/s eta 0:00:05\n",
155
+ " ------ --------------------------------- 8.3/54.3 MB 11.4 MB/s eta 0:00:05\n",
156
+ " ------ --------------------------------- 8.3/54.3 MB 11.4 MB/s eta 0:00:05\n",
157
+ " ------ --------------------------------- 8.9/54.3 MB 10.9 MB/s eta 0:00:05\n",
158
+ " ------ --------------------------------- 9.4/54.3 MB 10.7 MB/s eta 0:00:05\n",
159
+ " ------- -------------------------------- 9.9/54.3 MB 10.8 MB/s eta 0:00:05\n",
160
+ " ------- -------------------------------- 10.5/54.3 MB 10.7 MB/s eta 0:00:05\n",
161
+ " -------- ------------------------------- 11.0/54.3 MB 10.7 MB/s eta 0:00:05\n",
162
+ " -------- ------------------------------- 11.5/54.3 MB 10.6 MB/s eta 0:00:05\n",
163
+ " -------- ------------------------------- 12.1/54.3 MB 10.7 MB/s eta 0:00:04\n",
164
+ " --------- ------------------------------ 12.6/54.3 MB 10.6 MB/s eta 0:00:04\n",
165
+ " --------- ------------------------------ 13.1/54.3 MB 10.4 MB/s eta 0:00:04\n",
166
+ " ---------- ----------------------------- 13.7/54.3 MB 10.7 MB/s eta 0:00:04\n",
167
+ " ---------- ----------------------------- 14.3/54.3 MB 10.6 MB/s eta 0:00:04\n",
168
+ " ---------- ----------------------------- 14.8/54.3 MB 10.6 MB/s eta 0:00:04\n",
169
+ " ----------- ---------------------------- 15.3/54.3 MB 10.6 MB/s eta 0:00:04\n",
170
+ " ----------- ---------------------------- 15.8/54.3 MB 10.7 MB/s eta 0:00:04\n",
171
+ " ------------ --------------------------- 16.3/54.3 MB 10.7 MB/s eta 0:00:04\n",
172
+ " ------------ --------------------------- 16.9/54.3 MB 10.6 MB/s eta 0:00:04\n",
173
+ " ------------ --------------------------- 17.4/54.3 MB 10.6 MB/s eta 0:00:04\n",
174
+ " ------------- -------------------------- 17.9/54.3 MB 10.6 MB/s eta 0:00:04\n",
175
+ " ------------- -------------------------- 18.4/54.3 MB 10.6 MB/s eta 0:00:04\n",
176
+ " ------------- -------------------------- 19.0/54.3 MB 11.1 MB/s eta 0:00:04\n",
177
+ " -------------- ------------------------- 19.5/54.3 MB 11.1 MB/s eta 0:00:04\n",
178
+ " -------------- ------------------------- 20.0/54.3 MB 11.3 MB/s eta 0:00:04\n",
179
+ " --------------- ------------------------ 20.5/54.3 MB 11.1 MB/s eta 0:00:04\n",
180
+ " --------------- ------------------------ 21.1/54.3 MB 11.3 MB/s eta 0:00:03\n",
181
+ " --------------- ------------------------ 21.6/54.3 MB 11.3 MB/s eta 0:00:03\n",
182
+ " ---------------- ----------------------- 22.1/54.3 MB 11.1 MB/s eta 0:00:03\n",
183
+ " ---------------- ----------------------- 22.6/54.3 MB 11.1 MB/s eta 0:00:03\n",
184
+ " ----------------- ---------------------- 23.1/54.3 MB 10.9 MB/s eta 0:00:03\n",
185
+ " ----------------- ---------------------- 23.7/54.3 MB 11.1 MB/s eta 0:00:03\n",
186
+ " ----------------- ---------------------- 24.2/54.3 MB 11.1 MB/s eta 0:00:03\n",
187
+ " ------------------ --------------------- 24.6/54.3 MB 10.9 MB/s eta 0:00:03\n",
188
+ " ------------------ --------------------- 25.1/54.3 MB 10.9 MB/s eta 0:00:03\n",
189
+ " ------------------ --------------------- 25.6/54.3 MB 10.9 MB/s eta 0:00:03\n",
190
+ " ------------------- -------------------- 26.1/54.3 MB 10.9 MB/s eta 0:00:03\n",
191
+ " ------------------- -------------------- 26.6/54.3 MB 10.7 MB/s eta 0:00:03\n",
192
+ " ------------------- -------------------- 27.1/54.3 MB 10.9 MB/s eta 0:00:03\n",
193
+ " -------------------- ------------------- 27.6/54.3 MB 10.7 MB/s eta 0:00:03\n",
194
+ " -------------------- ------------------- 28.1/54.3 MB 10.9 MB/s eta 0:00:03\n",
195
+ " --------------------- ------------------ 28.6/54.3 MB 10.9 MB/s eta 0:00:03\n",
196
+ " --------------------- ------------------ 29.2/54.3 MB 10.7 MB/s eta 0:00:03\n",
197
+ " --------------------- ------------------ 29.6/54.3 MB 10.7 MB/s eta 0:00:03\n",
198
+ " ---------------------- ----------------- 30.0/54.3 MB 10.6 MB/s eta 0:00:03\n",
199
+ " ---------------------- ----------------- 30.5/54.3 MB 10.7 MB/s eta 0:00:03\n",
200
+ " ---------------------- ----------------- 31.0/54.3 MB 10.7 MB/s eta 0:00:03\n",
201
+ " ----------------------- ---------------- 31.5/54.3 MB 10.9 MB/s eta 0:00:03\n",
202
+ " ----------------------- ---------------- 32.1/54.3 MB 10.7 MB/s eta 0:00:03\n",
203
+ " ------------------------ --------------- 32.6/54.3 MB 10.9 MB/s eta 0:00:02\n",
204
+ " ------------------------ --------------- 33.2/54.3 MB 10.7 MB/s eta 0:00:02\n",
205
+ " ------------------------ --------------- 33.6/54.3 MB 10.7 MB/s eta 0:00:02\n",
206
+ " ------------------------- -------------- 34.1/54.3 MB 10.7 MB/s eta 0:00:02\n",
207
+ " ------------------------- -------------- 34.7/54.3 MB 10.9 MB/s eta 0:00:02\n",
208
+ " ------------------------- -------------- 35.3/54.3 MB 10.9 MB/s eta 0:00:02\n",
209
+ " -------------------------- ------------- 35.8/54.3 MB 10.9 MB/s eta 0:00:02\n",
210
+ " -------------------------- ------------- 36.4/54.3 MB 11.1 MB/s eta 0:00:02\n",
211
+ " --------------------------- ------------ 36.9/54.3 MB 11.3 MB/s eta 0:00:02\n",
212
+ " --------------------------- ------------ 37.3/54.3 MB 10.9 MB/s eta 0:00:02\n",
213
+ " --------------------------- ------------ 37.9/54.3 MB 11.1 MB/s eta 0:00:02\n",
214
+ " ---------------------------- ----------- 38.4/54.3 MB 11.1 MB/s eta 0:00:02\n",
215
+ " ---------------------------- ----------- 38.9/54.3 MB 11.1 MB/s eta 0:00:02\n",
216
+ " ----------------------------- ---------- 39.5/54.3 MB 11.1 MB/s eta 0:00:02\n",
217
+ " ----------------------------- ---------- 40.0/54.3 MB 11.1 MB/s eta 0:00:02\n",
218
+ " ----------------------------- ---------- 40.5/54.3 MB 11.3 MB/s eta 0:00:02\n",
219
+ " ------------------------------ --------- 41.0/54.3 MB 11.1 MB/s eta 0:00:02\n",
220
+ " ------------------------------ --------- 41.5/54.3 MB 11.1 MB/s eta 0:00:02\n",
221
+ " ------------------------------ --------- 41.9/54.3 MB 11.1 MB/s eta 0:00:02\n",
222
+ " ------------------------------- -------- 42.6/54.3 MB 11.1 MB/s eta 0:00:02\n",
223
+ " ------------------------------- -------- 43.0/54.3 MB 11.1 MB/s eta 0:00:02\n",
224
+ " -------------------------------- ------- 43.6/54.3 MB 11.1 MB/s eta 0:00:01\n",
225
+ " -------------------------------- ------- 44.1/54.3 MB 11.1 MB/s eta 0:00:01\n",
226
+ " -------------------------------- ------- 44.6/54.3 MB 11.1 MB/s eta 0:00:01\n",
227
+ " --------------------------------- ------ 45.1/54.3 MB 10.9 MB/s eta 0:00:01\n",
228
+ " --------------------------------- ------ 45.7/54.3 MB 11.1 MB/s eta 0:00:01\n",
229
+ " ---------------------------------- ----- 46.2/54.3 MB 11.1 MB/s eta 0:00:01\n",
230
+ " ---------------------------------- ----- 46.7/54.3 MB 10.9 MB/s eta 0:00:01\n",
231
+ " ---------------------------------- ----- 47.2/54.3 MB 10.9 MB/s eta 0:00:01\n",
232
+ " ----------------------------------- ---- 47.7/54.3 MB 11.1 MB/s eta 0:00:01\n",
233
+ " ----------------------------------- ---- 48.1/54.3 MB 10.9 MB/s eta 0:00:01\n",
234
+ " ----------------------------------- ---- 48.7/54.3 MB 10.9 MB/s eta 0:00:01\n",
235
+ " ------------------------------------ --- 49.2/54.3 MB 10.9 MB/s eta 0:00:01\n",
236
+ " ------------------------------------ --- 49.7/54.3 MB 10.9 MB/s eta 0:00:01\n",
237
+ " ------------------------------------ --- 50.2/54.3 MB 10.9 MB/s eta 0:00:01\n",
238
+ " ------------------------------------- -- 50.7/54.3 MB 10.9 MB/s eta 0:00:01\n",
239
+ " ------------------------------------- -- 51.2/54.3 MB 10.9 MB/s eta 0:00:01\n",
240
+ " -------------------------------------- - 51.6/54.3 MB 10.9 MB/s eta 0:00:01\n",
241
+ " -------------------------------------- - 52.2/54.3 MB 10.9 MB/s eta 0:00:01\n",
242
+ " -------------------------------------- - 52.7/54.3 MB 10.7 MB/s eta 0:00:01\n",
243
+ " --------------------------------------- 53.2/54.3 MB 10.9 MB/s eta 0:00:01\n",
244
+ " --------------------------------------- 53.7/54.3 MB 10.7 MB/s eta 0:00:01\n",
245
+ " --------------------------------------- 54.2/54.3 MB 10.9 MB/s eta 0:00:01\n",
246
+ " --------------------------------------- 54.3/54.3 MB 10.9 MB/s eta 0:00:01\n",
247
+ " --------------------------------------- 54.3/54.3 MB 10.9 MB/s eta 0:00:01\n",
248
+ " --------------------------------------- 54.3/54.3 MB 10.9 MB/s eta 0:00:01\n",
249
+ " --------------------------------------- 54.3/54.3 MB 10.9 MB/s eta 0:00:01\n",
250
+ " ---------------------------------------- 54.3/54.3 MB 8.7 MB/s eta 0:00:00\n",
251
+ "Downloading gradio_client-1.10.3-py3-none-any.whl (323 kB)\n",
252
+ " ---------------------------------------- 0.0/323.6 kB ? eta -:--:--\n",
253
+ " ---------------------------------------- 323.6/323.6 kB 6.8 MB/s eta 0:00:00\n",
254
+ "Downloading aiofiles-24.1.0-py3-none-any.whl (15 kB)\n",
255
+ "Downloading fastapi-0.115.13-py3-none-any.whl (95 kB)\n",
256
+ " ---------------------------------------- 0.0/95.3 kB ? eta -:--:--\n",
257
+ " ---------------------------------------- 95.3/95.3 kB ? eta 0:00:00\n",
258
+ "Downloading groovy-0.1.2-py3-none-any.whl (14 kB)\n",
259
+ "Downloading httpx-0.28.1-py3-none-any.whl (73 kB)\n",
260
+ " ---------------------------------------- 0.0/73.5 kB ? eta -:--:--\n",
261
+ " ---------------------------------------- 73.5/73.5 kB ? eta 0:00:00\n",
262
+ "Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)\n",
263
+ " ---------------------------------------- 0.0/78.8 kB ? eta -:--:--\n",
264
+ " ---------------------------------------- 78.8/78.8 kB ? eta 0:00:00\n",
265
+ "Downloading huggingface_hub-0.33.0-py3-none-any.whl (514 kB)\n",
266
+ " ---------------------------------------- 0.0/514.8 kB ? eta -:--:--\n",
267
+ " -------------------------------------- 512.0/514.8 kB 10.7 MB/s eta 0:00:01\n",
268
+ " ---------------------------------------- 514.8/514.8 kB 8.1 MB/s eta 0:00:00\n",
269
+ "Downloading orjson-3.10.18-cp311-cp311-win_amd64.whl (134 kB)\n",
270
+ " ---------------------------------------- 0.0/134.6 kB ? eta -:--:--\n",
271
+ " ---------------------------------------- 134.6/134.6 kB ? eta 0:00:00\n",
272
+ "Downloading pydantic-2.11.7-py3-none-any.whl (444 kB)\n",
273
+ " ---------------------------------------- 0.0/444.8 kB ? eta -:--:--\n",
274
+ " -------------------------------------- 440.3/444.8 kB 13.9 MB/s eta 0:00:01\n",
275
+ " ---------------------------------------- 444.8/444.8 kB 9.4 MB/s eta 0:00:00\n",
276
+ "Downloading pydantic_core-2.33.2-cp311-cp311-win_amd64.whl (2.0 MB)\n",
277
+ " ---------------------------------------- 0.0/2.0 MB ? eta -:--:--\n",
278
+ " --------- ------------------------------ 0.5/2.0 MB 9.6 MB/s eta 0:00:01\n",
279
+ " ------------------- -------------------- 1.0/2.0 MB 12.2 MB/s eta 0:00:01\n",
280
+ " ----------------------------- ---------- 1.5/2.0 MB 11.6 MB/s eta 0:00:01\n",
281
+ " --------------------------------------- 1.9/2.0 MB 11.3 MB/s eta 0:00:01\n",
282
+ " ---------------------------------------- 2.0/2.0 MB 10.3 MB/s eta 0:00:00\n",
283
+ "Downloading python_multipart-0.0.20-py3-none-any.whl (24 kB)\n",
284
+ "Downloading ruff-0.12.0-py3-none-win_amd64.whl (11.6 MB)\n",
285
+ " ---------------------------------------- 0.0/11.6 MB ? eta -:--:--\n",
286
+ " - -------------------------------------- 0.5/11.6 MB 10.9 MB/s eta 0:00:02\n",
287
+ " --- ------------------------------------ 1.1/11.6 MB 11.1 MB/s eta 0:00:01\n",
288
+ " ----- ---------------------------------- 1.6/11.6 MB 11.0 MB/s eta 0:00:01\n",
289
+ " ------- -------------------------------- 2.1/11.6 MB 11.3 MB/s eta 0:00:01\n",
290
+ " -------- ------------------------------- 2.6/11.6 MB 11.0 MB/s eta 0:00:01\n",
291
+ " ---------- ----------------------------- 3.1/11.6 MB 11.6 MB/s eta 0:00:01\n",
292
+ " ------------ --------------------------- 3.7/11.6 MB 11.7 MB/s eta 0:00:01\n",
293
+ " -------------- ------------------------- 4.2/11.6 MB 11.6 MB/s eta 0:00:01\n",
294
+ " ---------------- ----------------------- 4.7/11.6 MB 11.6 MB/s eta 0:00:01\n",
295
+ " ------------------ --------------------- 5.2/11.6 MB 11.5 MB/s eta 0:00:01\n",
296
+ " ------------------- -------------------- 5.8/11.6 MB 11.5 MB/s eta 0:00:01\n",
297
+ " --------------------- ------------------ 6.3/11.6 MB 11.4 MB/s eta 0:00:01\n",
298
+ " ----------------------- ---------------- 6.8/11.6 MB 11.2 MB/s eta 0:00:01\n",
299
+ " ------------------------- -------------- 7.3/11.6 MB 11.4 MB/s eta 0:00:01\n",
300
+ " --------------------------- ------------ 7.9/11.6 MB 11.2 MB/s eta 0:00:01\n",
301
+ " ----------------------------- ---------- 8.4/11.6 MB 11.2 MB/s eta 0:00:01\n",
302
+ " ------------------------------ --------- 8.9/11.6 MB 11.4 MB/s eta 0:00:01\n",
303
+ " -------------------------------- ------- 9.4/11.6 MB 11.1 MB/s eta 0:00:01\n",
304
+ " ---------------------------------- ----- 10.0/11.6 MB 11.2 MB/s eta 0:00:01\n",
305
+ " ------------------------------------ --- 10.5/11.6 MB 11.3 MB/s eta 0:00:01\n",
306
+ " ------------------------------------- -- 11.0/11.6 MB 11.1 MB/s eta 0:00:01\n",
307
+ " --------------------------------------- 11.4/11.6 MB 11.1 MB/s eta 0:00:01\n",
308
+ " --------------------------------------- 11.6/11.6 MB 11.1 MB/s eta 0:00:01\n",
309
+ " ---------------------------------------- 11.6/11.6 MB 10.6 MB/s eta 0:00:00\n",
310
+ "Downloading safehttpx-0.1.6-py3-none-any.whl (8.7 kB)\n",
311
+ "Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n",
312
+ "Downloading starlette-0.46.2-py3-none-any.whl (72 kB)\n",
313
+ " ---------------------------------------- 0.0/72.0 kB ? eta -:--:--\n",
314
+ " ---------------------------------------- 72.0/72.0 kB ? eta 0:00:00\n",
315
+ "Downloading anyio-4.9.0-py3-none-any.whl (100 kB)\n",
316
+ " ---------------------------------------- 0.0/100.9 kB ? eta -:--:--\n",
317
+ " ---------------------------------------- 100.9/100.9 kB 5.7 MB/s eta 0:00:00\n",
318
+ "Downloading tomlkit-0.13.3-py3-none-any.whl (38 kB)\n",
319
+ "Downloading typer-0.16.0-py3-none-any.whl (46 kB)\n",
320
+ " ---------------------------------------- 0.0/46.3 kB ? eta -:--:--\n",
321
+ " ---------------------------------------- 46.3/46.3 kB ? eta 0:00:00\n",
322
+ "Downloading typing_extensions-4.14.0-py3-none-any.whl (43 kB)\n",
323
+ " ---------------------------------------- 0.0/43.8 kB ? eta -:--:--\n",
324
+ " ---------------------------------------- 43.8/43.8 kB ? eta 0:00:00\n",
325
+ "Downloading uvicorn-0.34.3-py3-none-any.whl (62 kB)\n",
326
+ " ---------------------------------------- 0.0/62.4 kB ? eta -:--:--\n",
327
+ " ---------------------------------------- 62.4/62.4 kB ? eta 0:00:00\n",
328
+ "Downloading ffmpy-0.6.0-py3-none-any.whl (5.5 kB)\n",
329
+ "Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n",
330
+ "Downloading annotated_types-0.7.0-py3-none-any.whl (13 kB)\n",
331
+ "Downloading h11-0.16.0-py3-none-any.whl (37 kB)\n",
332
+ "Downloading rich-14.0.0-py3-none-any.whl (243 kB)\n",
333
+ " ---------------------------------------- 0.0/243.2 kB ? eta -:--:--\n",
334
+ " --------------------------------------- 243.2/243.2 kB 14.6 MB/s eta 0:00:00\n",
335
+ "Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)\n",
336
+ "Downloading typing_inspection-0.4.1-py3-none-any.whl (14 kB)\n",
337
+ "Downloading websockets-15.0.1-cp311-cp311-win_amd64.whl (176 kB)\n",
338
+ " ---------------------------------------- 0.0/176.8 kB ? eta -:--:--\n",
339
+ " --------------------------------------- 176.8/176.8 kB 10.4 MB/s eta 0:00:00\n",
340
+ "Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)\n",
341
+ " ---------------------------------------- 0.0/87.5 kB ? eta -:--:--\n",
342
+ " ---------------------------------------- 87.5/87.5 kB 5.2 MB/s eta 0:00:00\n",
343
+ "Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n",
344
+ "Installing collected packages: pydub, websockets, typing-extensions, tomlkit, shellingham, semantic-version, ruff, python-multipart, orjson, mdurl, h11, groovy, ffmpy, annotated-types, aiofiles, uvicorn, typing-inspection, pydantic-core, markdown-it-py, huggingface-hub, httpcore, anyio, starlette, rich, pydantic, httpx, typer, safehttpx, gradio-client, fastapi, gradio\n",
345
+ " Attempting uninstall: typing-extensions\n",
346
+ " Found existing installation: typing_extensions 4.7.1\n",
347
+ " Uninstalling typing_extensions-4.7.1:\n",
348
+ " Successfully uninstalled typing_extensions-4.7.1\n",
349
+ " Attempting uninstall: anyio\n",
350
+ " Found existing installation: anyio 3.5.0\n",
351
+ " Uninstalling anyio-3.5.0:\n",
352
+ " Successfully uninstalled anyio-3.5.0\n",
353
+ " Attempting uninstall: pydantic\n",
354
+ " Found existing installation: pydantic 1.10.12\n",
355
+ " Uninstalling pydantic-1.10.12:\n",
356
+ " Successfully uninstalled pydantic-1.10.12\n",
357
+ "Successfully installed aiofiles-24.1.0 annotated-types-0.7.0 anyio-4.9.0 fastapi-0.115.13 ffmpy-0.6.0 gradio-5.34.1 gradio-client-1.10.3 groovy-0.1.2 h11-0.16.0 httpcore-1.0.9 httpx-0.28.1 huggingface-hub-0.33.0 markdown-it-py-3.0.0 mdurl-0.1.2 orjson-3.10.18 pydantic-2.11.7 pydantic-core-2.33.2 pydub-0.25.1 python-multipart-0.0.20 rich-14.0.0 ruff-0.12.0 safehttpx-0.1.6 semantic-version-2.10.0 shellingham-1.5.4 starlette-0.46.2 tomlkit-0.13.3 typer-0.16.0 typing-extensions-4.14.0 typing-inspection-0.4.1 uvicorn-0.34.3 websockets-15.0.1\n"
358
+ ]
359
+ },
360
+ {
361
+ "name": "stderr",
362
+ "output_type": "stream",
363
+ "text": [
364
+ "ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
365
+ "anaconda-cloud-auth 0.1.3 requires pydantic<2.0, but you have pydantic 2.11.7 which is incompatible.\n",
366
+ "jupyter-server 1.23.4 requires anyio<4,>=3.1.0, but you have anyio 4.9.0 which is incompatible.\n"
367
+ ]
368
+ }
369
+ ],
370
+ "source": [
371
+ "!pip install gradio"
372
+ ]
373
+ },
374
+ {
375
+ "cell_type": "code",
376
+ "execution_count": 9,
377
+ "id": "3bc12c26",
378
+ "metadata": {},
379
+ "outputs": [
380
+ {
381
+ "name": "stdout",
382
+ "output_type": "stream",
383
+ "text": [
384
+ "* Running on local URL: http://127.0.0.1:7861\n",
385
+ "* To create a public link, set `share=True` in `launch()`.\n"
386
+ ]
387
+ },
388
+ {
389
+ "data": {
390
+ "text/html": [
391
+ "<div><iframe src=\"http://127.0.0.1:7861/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
392
+ ],
393
+ "text/plain": [
394
+ "<IPython.core.display.HTML object>"
395
+ ]
396
+ },
397
+ "metadata": {},
398
+ "output_type": "display_data"
399
+ },
400
+ {
401
+ "data": {
402
+ "text/plain": []
403
+ },
404
+ "execution_count": 9,
405
+ "metadata": {},
406
+ "output_type": "execute_result"
407
+ }
408
+ ],
409
+ "source": [
410
+ "import gradio as gr\n",
411
+ "from joblib import load\n",
412
+ "\n",
413
+ "# Load your trained model\n",
414
+ "model = load(\"model_joblib\")\n",
415
+ "\n",
416
+ "# Prediction logic\n",
417
+ "def predict_loan(Age, Experience, Income, Family, CCAvg, Education, Mortgage,\n",
418
+ " SecuritiesAccount, CDAccount, Online, CreditCard):\n",
419
+ " \n",
420
+ " input_data = [[Age, Experience, Income, Family, CCAvg, Education, Mortgage,\n",
421
+ " SecuritiesAccount, CDAccount, Online, CreditCard]]\n",
422
+ " \n",
423
+ " prediction = model.predict(input_data)[0]\n",
424
+ " \n",
425
+ " result = \"✅ Yes - Will Accept Loan\" if prediction == 1 else \"❌ No - Will Not Accept Loan\"\n",
426
+ " return result\n",
427
+ "\n",
428
+ "# Gradio Interface\n",
429
+ "iface = gr.Interface(\n",
430
+ " fn=predict_loan,\n",
431
+ " inputs=[\n",
432
+ " gr.Number(label=\"Age\"),\n",
433
+ " gr.Number(label=\"Experience (years)\"),\n",
434
+ " gr.Number(label=\"Income (in $000)\"),\n",
435
+ " gr.Number(label=\"Family Members\"),\n",
436
+ " gr.Number(label=\"CC Average Balance (in $000)\"),\n",
437
+ " gr.Number(label=\"Education Level (1=Undergrad, 2=Graduate, 3=Advanced)\"),\n",
438
+ " gr.Number(label=\"Mortgage (in $000)\"),\n",
439
+ " gr.Number(label=\"Securities Account (1=Yes, 0=No)\"),\n",
440
+ " gr.Number(label=\"CD Account (1=Yes, 0=No)\"),\n",
441
+ " gr.Number(label=\"Online Banking (1=Yes, 0=No)\"),\n",
442
+ " gr.Number(label=\"Credit Card (1=Yes, 0=No)\")\n",
443
+ " ],\n",
444
+ " outputs=\"text\",\n",
445
+ " title=\"📊 Personal Loan Offer Prediction\",\n",
446
+ " description=\"Enter customer details to predict if they will accept the personal loan offer.\"\n",
447
+ ")\n",
448
+ "\n",
449
+ "iface.launch()"
450
+ ]
451
+ },
452
+ {
453
+ "cell_type": "code",
454
+ "execution_count": null,
455
+ "id": "96a8c827",
456
+ "metadata": {},
457
+ "outputs": [],
458
+ "source": []
459
+ }
460
+ ],
461
+ "metadata": {
462
+ "kernelspec": {
463
+ "display_name": "Python 3 (ipykernel)",
464
+ "language": "python",
465
+ "name": "python3"
466
+ },
467
+ "language_info": {
468
+ "codemirror_mode": {
469
+ "name": "ipython",
470
+ "version": 3
471
+ },
472
+ "file_extension": ".py",
473
+ "mimetype": "text/x-python",
474
+ "name": "python",
475
+ "nbconvert_exporter": "python",
476
+ "pygments_lexer": "ipython3",
477
+ "version": "3.11.5"
478
+ }
479
+ },
480
+ "nbformat": 4,
481
+ "nbformat_minor": 5
482
+ }
model_joblib ADDED
Binary file (1.42 kB). View file
 
requirements.txt ADDED
File without changes