Soroush commited on
Commit
0aedc55
·
1 Parent(s): 37cffcd

requirements

Browse files
Files changed (2) hide show
  1. gradio_ui.py +2 -0
  2. requirements.txt +6 -191
gradio_ui.py CHANGED
@@ -227,6 +227,8 @@ class PIIMaskingUI:
227
  Available masking strategies: blur, single_color, none.
228
  The tool supports various Mistral models for image processing.
229
  (Available models: pixtral-large-latest, mistral-ocr-latest, mistral-medium-2505).
 
 
230
 
231
  Args:
232
  image: A valid Image URL starting with http or https
 
227
  Available masking strategies: blur, single_color, none.
228
  The tool supports various Mistral models for image processing.
229
  (Available models: pixtral-large-latest, mistral-ocr-latest, mistral-medium-2505).
230
+ This method returns a tuple containing
231
+ the output image and a JSON result and mcp.types.ImageContent.
232
 
233
  Args:
234
  image: A valid Image URL starting with http or https
requirements.txt CHANGED
@@ -1,191 +1,6 @@
1
- # This file was autogenerated by uv via the following command:
2
- # uv pip compile pyproject.toml
3
- aiofiles==24.1.0
4
- # via gradio
5
- annotated-types==0.7.0
6
- # via pydantic
7
- anyio==4.9.0
8
- # via
9
- # gradio
10
- # httpx
11
- # mcp
12
- # sse-starlette
13
- # starlette
14
- audioop-lts==0.2.1
15
- # via gradio
16
- certifi==2025.4.26
17
- # via
18
- # httpcore
19
- # httpx
20
- # requests
21
- charset-normalizer==3.4.2
22
- # via requests
23
- click==8.2.1
24
- # via
25
- # typer
26
- # uvicorn
27
- eval-type-backport==0.2.2
28
- # via mistralai
29
- fastapi==0.115.12
30
- # via gradio
31
- ffmpy==0.6.0
32
- # via gradio
33
- filelock==3.18.0
34
- # via huggingface-hub
35
- fsspec==2025.5.1
36
- # via
37
- # gradio-client
38
- # huggingface-hub
39
- gradio==5.32.1
40
- # via pii-detection-mcp-server (pyproject.toml)
41
- gradio-client==1.10.2
42
- # via gradio
43
- groovy==0.1.2
44
- # via gradio
45
- h11==0.16.0
46
- # via
47
- # httpcore
48
- # uvicorn
49
- hf-xet==1.1.3
50
- # via huggingface-hub
51
- httpcore==1.0.9
52
- # via httpx
53
- httpx==0.28.1
54
- # via
55
- # gradio
56
- # gradio-client
57
- # mcp
58
- # mistralai
59
- # safehttpx
60
- httpx-sse==0.4.0
61
- # via mcp
62
- huggingface-hub==0.32.4
63
- # via
64
- # gradio
65
- # gradio-client
66
- idna==3.10
67
- # via
68
- # anyio
69
- # httpx
70
- # requests
71
- jinja2==3.1.6
72
- # via gradio
73
- markdown-it-py==3.0.0
74
- # via rich
75
- markupsafe==3.0.2
76
- # via
77
- # gradio
78
- # jinja2
79
- mcp==1.9.0
80
- # via gradio
81
- mdurl==0.1.2
82
- # via markdown-it-py
83
- mistralai==1.8.1
84
- # via pii-detection-mcp-server (pyproject.toml)
85
- numpy==2.2.6
86
- # via
87
- # pii-detection-mcp-server (pyproject.toml)
88
- # gradio
89
- # pandas
90
- orjson==3.10.18
91
- # via gradio
92
- packaging==25.0
93
- # via
94
- # gradio
95
- # gradio-client
96
- # huggingface-hub
97
- pandas==2.2.3
98
- # via gradio
99
- pillow==11.2.1
100
- # via
101
- # pii-detection-mcp-server (pyproject.toml)
102
- # gradio
103
- pydantic==2.11.5
104
- # via
105
- # fastapi
106
- # gradio
107
- # mcp
108
- # mistralai
109
- # pydantic-settings
110
- pydantic-core==2.33.2
111
- # via pydantic
112
- pydantic-settings==2.9.1
113
- # via mcp
114
- pydub==0.25.1
115
- # via gradio
116
- pygments==2.19.1
117
- # via rich
118
- python-dateutil==2.9.0.post0
119
- # via
120
- # mistralai
121
- # pandas
122
- python-dotenv==1.1.0
123
- # via
124
- # pii-detection-mcp-server (pyproject.toml)
125
- # pydantic-settings
126
- python-multipart==0.0.20
127
- # via
128
- # gradio
129
- # mcp
130
- pytz==2025.2
131
- # via pandas
132
- pyyaml==6.0.2
133
- # via
134
- # gradio
135
- # huggingface-hub
136
- requests==2.32.3
137
- # via
138
- # pii-detection-mcp-server (pyproject.toml)
139
- # huggingface-hub
140
- rich==14.0.0
141
- # via typer
142
- ruff==0.11.12
143
- # via gradio
144
- safehttpx==0.1.6
145
- # via gradio
146
- semantic-version==2.10.0
147
- # via gradio
148
- shellingham==1.5.4
149
- # via typer
150
- six==1.17.0
151
- # via python-dateutil
152
- sniffio==1.3.1
153
- # via anyio
154
- sse-starlette==2.3.6
155
- # via mcp
156
- starlette==0.46.2
157
- # via
158
- # fastapi
159
- # gradio
160
- # mcp
161
- tomlkit==0.13.2
162
- # via gradio
163
- tqdm==4.67.1
164
- # via huggingface-hub
165
- typer==0.16.0
166
- # via gradio
167
- typing-extensions==4.14.0
168
- # via
169
- # fastapi
170
- # gradio
171
- # gradio-client
172
- # huggingface-hub
173
- # pydantic
174
- # pydantic-core
175
- # typer
176
- # typing-inspection
177
- typing-inspection==0.4.1
178
- # via
179
- # mistralai
180
- # pydantic
181
- # pydantic-settings
182
- tzdata==2025.2
183
- # via pandas
184
- urllib3==2.4.0
185
- # via requests
186
- uvicorn==0.34.3
187
- # via
188
- # gradio
189
- # mcp
190
- websockets==15.0.1
191
- # via gradio-client
 
1
+ gradio[mcp]>=5.32.1
2
+ mistralai>=1.8.1
3
+ numpy>=2.2.6
4
+ pillow>=11.2.1
5
+ python-dotenv>=1.1.0
6
+ requests>=2.32.3