Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
4f52154
1
Parent(s):
8c68ea7
Added new leaderboard files
Browse files- Dockerfile +21 -0
- download_data.py +3 -0
- main.py +3 -0
- requirements.txt +4 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.12-bookworm
|
2 |
+
|
3 |
+
RUN apt update
|
4 |
+
RUN apt install -y git
|
5 |
+
|
6 |
+
RUN useradd -m -u 1000 user
|
7 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
8 |
+
|
9 |
+
RUN git clone https://github.com/embeddings-benchmark/mteb.git
|
10 |
+
RUN chown -R 1000 /mteb
|
11 |
+
USER user
|
12 |
+
|
13 |
+
COPY --chown=user ./main.py /mteb/main.py
|
14 |
+
COPY --chown=user ./requirements.txt /mteb/requirements.txt
|
15 |
+
RUN pip install -r /mteb/requirements.txt
|
16 |
+
COPY --chown=user ./download_data.py /mteb/download_data.py
|
17 |
+
|
18 |
+
WORKDIR /mteb
|
19 |
+
|
20 |
+
EXPOSE 7860
|
21 |
+
CMD ["python3", "main.py"]
|
download_data.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from mteb.leaderboard.app import load_results
|
2 |
+
|
3 |
+
load_results()
|
main.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from mteb.leaderboard.app import demo
|
2 |
+
|
3 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
mteb
|
2 |
+
gradio_rangeslider>=0.0.8
|
3 |
+
gradio>=5.5.0
|
4 |
+
plotly>=5.20.0,<6.0.0
|