lailaelkoussy commited on
Commit
fd60413
Β·
verified Β·
1 Parent(s): a100cc5

upload rest of files

Browse files
Files changed (8) hide show
  1. .dockerignore +24 -0
  2. .gitattributes +1 -0
  3. .gitignore +24 -0
  4. Dockerfile +47 -0
  5. gradio_mcp_space.py +0 -0
  6. logo-epita.png +3 -0
  7. logo-ionis.png +0 -0
  8. requirements.txt +255 -0
.dockerignore ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.so
5
+ .Python
6
+ .git/
7
+ .gitignore
8
+ .env
9
+ .venv
10
+ env/
11
+ venv/
12
+ *.egg-info/
13
+ .eggs/
14
+ dist/
15
+ build/
16
+ *.log
17
+ .DS_Store
18
+ Thumbs.db
19
+ *.swp
20
+ *.swo
21
+ *~
22
+ .idea/
23
+ .vscode/
24
+ *.ipynb_checkpoints
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ logo-epita.png filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.so
5
+ .Python
6
+ .git/
7
+ .env
8
+ .venv
9
+ env/
10
+ venv/
11
+ *.egg-info/
12
+ .eggs/
13
+ dist/
14
+ build/
15
+ *.log
16
+ .DS_Store
17
+ Thumbs.db
18
+ *.swp
19
+ *.swo
20
+ *~
21
+ .idea/
22
+ .vscode/
23
+ *.ipynb_checkpoints
24
+ local_code_index_db/
Dockerfile ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13-slim
2
+
3
+ # Set environment variables
4
+ ENV PYTHONUNBUFFERED=1
5
+ ENV PYTHONDONTWRITEBYTECODE=1
6
+ ENV GRADIO_SERVER_NAME=0.0.0.0
7
+ ENV GRADIO_SERVER_PORT=7860
8
+
9
+ # System dependencies
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ clang \
12
+ llvm-dev \
13
+ build-essential \
14
+ curl \
15
+ git \
16
+ pkg-config \
17
+ wget \
18
+ ca-certificates \
19
+ && rm -rf /var/lib/apt/lists/*
20
+
21
+ # Create a non-root user for HuggingFace Spaces
22
+ RUN useradd -m -u 1000 user
23
+ WORKDIR /app
24
+
25
+ # Copy requirements first for better caching
26
+ COPY requirements.txt /app/requirements.txt
27
+
28
+ # Install Python dependencies
29
+ RUN pip install --no-cache-dir -r /app/requirements.txt && \
30
+ pip install --no-cache-dir libclang
31
+
32
+ # Copy application code (excluding large data files)
33
+ COPY --chown=user:user . /app
34
+
35
+ # Set ownership
36
+ RUN chown -R user:user /app
37
+
38
+ # Switch to non-root user
39
+ USER user
40
+
41
+ # Expose the Gradio port
42
+ EXPOSE 7860
43
+
44
+ # Default command - can be overridden to use --hf-dataset instead of --graph-file
45
+ # To use HuggingFace dataset: --hf-dataset "username/dataset-name"
46
+ # To use local file: --graph-file "/app/data/multihop_knowledge_graph_with_embeddings.json"
47
+ CMD ["python", "-u", "gradio_mcp_space.py"]
gradio_mcp_space.py ADDED
The diff for this file is too large to render. See raw diff
 
logo-epita.png ADDED

Git LFS Details

  • SHA256: dc806fa5c99fe0e2aa8d248c4b4b31ae23a40acb8c4c296f896d3c0ec700ee1e
  • Pointer size: 128 Bytes
  • Size of remote file: 131 Bytes
logo-ionis.png ADDED
requirements.txt ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiofiles==24.1.0
2
+ aiohappyeyeballs==2.6.1
3
+ aiohttp==3.13.2
4
+ aioitertools==0.12.0
5
+ aiosignal==1.4.0
6
+ aiosqlite==0.21.0
7
+ alembic==1.17.1
8
+ annotated-doc==0.0.3
9
+ annotated-types==0.7.0
10
+ anyio==4.11.0
11
+ arize-phoenix==12.9.0
12
+ arize-phoenix-client==1.21.0
13
+ arize-phoenix-evals==2.5.0
14
+ arize-phoenix-otel==0.13.1
15
+ attrs==25.4.0
16
+ audioop-lts==0.2.2
17
+ Authlib==1.6.5
18
+ backoff==2.2.1
19
+ bcrypt==5.0.0
20
+ beartype==0.22.5
21
+ beautifulsoup4==4.14.2
22
+ brotli==1.2.0
23
+ bs4==0.0.2
24
+ build==1.3.0
25
+ cachetools==6.2.1
26
+ certifi==2025.10.5
27
+ cffi==2.0.0
28
+ charset-normalizer==3.4.4
29
+ chromadb==1.3.0
30
+ clang==20.1.5
31
+ click==8.3.0
32
+ coloredlogs==15.0.1
33
+ contourpy==1.3.3
34
+ cryptography==46.0.3
35
+ cycler==0.12.1
36
+ cyclopts==4.2.1
37
+ datasets==4.4.1
38
+ ddgs==9.7.1
39
+ deprecation==2.1.0
40
+ dill==0.4.0
41
+ diskcache==5.6.3
42
+ distro==1.9.0
43
+ dnspython==2.8.0
44
+ docstring_parser==0.17.0
45
+ docutils==0.22.2
46
+ durationpy==0.10
47
+ email-validator==2.3.0
48
+ esprima==4.0.1
49
+ exceptiongroup==1.3.0
50
+ fastapi==0.121.0
51
+ ffmpy==1.0.0
52
+ filelock==3.20.0
53
+ flatbuffers==25.9.23
54
+ fonttools==4.60.1
55
+ frozenlist==1.8.0
56
+ fsspec==2025.9.0
57
+ google-auth==2.42.0
58
+ googleapis-common-protos==1.71.0
59
+ gradio==5.49.1
60
+ gradio_client==1.13.3
61
+ graphql-core==3.2.7
62
+ greenlet==3.2.4
63
+ groovy==0.1.2
64
+ grpc-interceptor==0.15.4
65
+ grpcio==1.76.0
66
+ h11==0.16.0
67
+ h2==4.3.0
68
+ hf-xet==1.2.0
69
+ hpack==4.1.0
70
+ httpcore==1.0.9
71
+ httptools==0.7.1
72
+ httpx==0.28.1
73
+ httpx-sse==0.4.3
74
+ huggingface-hub==0.36.0
75
+ humanfriendly==10.0
76
+ hyperframe==6.1.0
77
+ idna==3.11
78
+ importlib_metadata==8.7.0
79
+ importlib_resources==6.5.2
80
+ iniconfig==2.3.0
81
+ jaraco.classes==3.4.0
82
+ jaraco.context==6.0.1
83
+ jaraco.functools==4.3.0
84
+ javalang==0.13.0
85
+ jeepney==0.9.0
86
+ Jinja2==3.1.6
87
+ jiter==0.11.1
88
+ jmespath==1.0.1
89
+ joblib==1.5.2
90
+ jsonpatch==1.33
91
+ jsonpath-ng==1.7.0
92
+ jsonpointer==3.0.0
93
+ jsonref==1.1.0
94
+ jsonschema==4.25.1
95
+ jsonschema-path==0.3.4
96
+ jsonschema-specifications==2025.9.1
97
+ keyring==25.6.0
98
+ kiwisolver==1.4.9
99
+ kubernetes==34.1.0
100
+ lance-namespace==0.0.21
101
+ lance-namespace-urllib3-client==0.0.21
102
+ lancedb==0.25.3
103
+ langchain-core==1.0.1
104
+ langchain-text-splitters==1.0.0
105
+ langfuse==3.9.0
106
+ langsmith==0.4.38
107
+ lxml==6.0.2
108
+ Mako==1.3.10
109
+ markdown-it-py==4.0.0
110
+ MarkupSafe==3.0.3
111
+ matplotlib==3.10.7
112
+ mcp==1.10.1
113
+ mcpadapt==0.1.20
114
+ mdurl==0.1.2
115
+ mmh3==5.2.0
116
+ more-itertools==10.8.0
117
+ mpmath==1.3.0
118
+ multidict==6.7.0
119
+ multiprocess==0.70.18
120
+ nest-asyncio==1.6.0
121
+ networkx==3.5
122
+ numpy==2.3.4
123
+ nvidia-cublas-cu12==12.8.4.1
124
+ nvidia-cuda-cupti-cu12==12.8.90
125
+ nvidia-cuda-nvrtc-cu12==12.8.93
126
+ nvidia-cuda-runtime-cu12==12.8.90
127
+ nvidia-cudnn-cu12==9.10.2.21
128
+ nvidia-cufft-cu12==11.3.3.83
129
+ nvidia-cufile-cu12==1.13.1.3
130
+ nvidia-curand-cu12==10.3.9.90
131
+ nvidia-cusolver-cu12==11.7.3.90
132
+ nvidia-cusparse-cu12==12.5.8.93
133
+ nvidia-cusparselt-cu12==0.7.1
134
+ nvidia-nccl-cu12==2.27.5
135
+ nvidia-nvjitlink-cu12==12.8.93
136
+ nvidia-nvshmem-cu12==3.3.20
137
+ nvidia-nvtx-cu12==12.8.90
138
+ oauthlib==3.3.1
139
+ onnxruntime==1.23.2
140
+ openai==2.6.1
141
+ openapi-pydantic==0.5.1
142
+ openinference-instrumentation==0.1.42
143
+ openinference-instrumentation-smolagents==0.1.19
144
+ openinference-semantic-conventions==0.1.25
145
+ opentelemetry-api==1.38.0
146
+ opentelemetry-exporter-otlp==1.38.0
147
+ opentelemetry-exporter-otlp-proto-common==1.38.0
148
+ opentelemetry-exporter-otlp-proto-grpc==1.38.0
149
+ opentelemetry-exporter-otlp-proto-http==1.38.0
150
+ opentelemetry-instrumentation==0.59b0
151
+ opentelemetry-proto==1.38.0
152
+ opentelemetry-sdk==1.38.0
153
+ opentelemetry-semantic-conventions==0.59b0
154
+ orjson==3.11.4
155
+ overrides==7.7.0
156
+ packaging==25.0
157
+ pandas==2.3.3
158
+ pathable==0.4.4
159
+ pathvalidate==3.3.1
160
+ pillow==11.3.0
161
+ pip==25.3
162
+ platformdirs==4.5.0
163
+ pluggy==1.6.0
164
+ ply==3.11
165
+ posthog==5.4.0
166
+ primp==0.15.0
167
+ prometheus_client==0.23.1
168
+ propcache==0.4.1
169
+ protobuf==6.33.0
170
+ psutil==7.1.3
171
+ py-key-value-aio==0.2.8
172
+ py-key-value-shared==0.2.8
173
+ pyarrow==22.0.0
174
+ pyasn1==0.6.1
175
+ pyasn1_modules==0.4.2
176
+ pybase64==1.4.2
177
+ pycparser==2.23
178
+ pydantic==2.11.10
179
+ pydantic_core==2.33.2
180
+ pydantic-settings==2.11.0
181
+ pydub==0.25.1
182
+ Pygments==2.19.2
183
+ PyJWT==2.10.1
184
+ pylance==0.39.0
185
+ pyparsing==3.2.5
186
+ pyperclip==1.11.0
187
+ PyPika==0.48.9
188
+ pyproject_hooks==1.2.0
189
+ pystache==0.6.8
190
+ pytest==8.4.2
191
+ python-dateutil==2.9.0.post0
192
+ python-dotenv==1.2.1
193
+ python-multipart==0.0.20
194
+ pytz==2025.2
195
+ PyYAML==6.0.3
196
+ referencing==0.36.2
197
+ regex==2025.10.23
198
+ requests==2.32.5
199
+ requests-oauthlib==2.0.0
200
+ requests-toolbelt==1.0.0
201
+ rich==14.2.0
202
+ rich-rst==1.3.2
203
+ rpds-py==0.28.0
204
+ rsa==4.9.1
205
+ ruff==0.14.5
206
+ safehttpx==0.1.7
207
+ safetensors==0.6.2
208
+ scikit-learn==1.7.2
209
+ scipy==1.16.3
210
+ SecretStorage==3.4.0
211
+ semantic-version==2.10.0
212
+ sentence-transformers==5.1.2
213
+ setuptools==80.9.0
214
+ shellingham==1.5.4
215
+ six==1.17.0
216
+ smolagents==1.22.0
217
+ sniffio==1.3.1
218
+ socksio==1.0.0
219
+ soupsieve==2.8
220
+ SQLAlchemy==2.0.44
221
+ sqlean.py==3.50.4.5
222
+ sse-starlette==3.0.3
223
+ starlette==0.49.3
224
+ strawberry-graphql==0.270.1
225
+ sympy==1.14.0
226
+ tantivy==0.25.0
227
+ tenacity==9.1.2
228
+ threadpoolctl==3.6.0
229
+ tokenizers==0.22.1
230
+ tomlkit==0.13.3
231
+ torch==2.9.0
232
+ tqdm==4.67.1
233
+ transformers==4.57.1
234
+ tree-sitter==0.25.2
235
+ tree-sitter-rust==0.24.0
236
+ triton==3.5.0
237
+ typer==0.20.0
238
+ typer-slim==0.20.0
239
+ typing_extensions==4.15.0
240
+ typing-inspection==0.4.2
241
+ tzdata==2025.2
242
+ urllib3==2.3.0
243
+ uvicorn==0.38.0
244
+ uvloop==0.22.1
245
+ validators==0.35.0
246
+ watchfiles==1.1.1
247
+ weaviate-client==4.17.0
248
+ websocket-client==1.9.0
249
+ websockets==15.0.1
250
+ wheel==0.45.1
251
+ wrapt==1.17.3
252
+ xxhash==3.6.0
253
+ yarl==1.22.0
254
+ zipp==3.23.0
255
+ zstandard==0.25.0