Restart build
Browse files- .gitignore +1 -0
- Dockerfile +0 -1
- __pycache__/app.cpython-311.pyc +0 -0
- app.py +1 -2
- requirements.txt +2 -2
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__pycache__
|
Dockerfile
CHANGED
|
@@ -8,7 +8,6 @@ WORKDIR /code
|
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 10 |
|
| 11 |
-
|
| 12 |
# Set up a new user named "user" with user ID 1000
|
| 13 |
RUN useradd -m -u 1000 user
|
| 14 |
USER user
|
|
|
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 10 |
|
|
|
|
| 11 |
# Set up a new user named "user" with user ID 1000
|
| 12 |
RUN useradd -m -u 1000 user
|
| 13 |
USER user
|
__pycache__/app.cpython-311.pyc
DELETED
|
Binary file (10.1 kB)
|
|
|
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def run(r_filepath:Path, q_filepath:Path,
|
|
| 48 |
assert q_filepath is not None, "Query file is missing."
|
| 49 |
import tempfile
|
| 50 |
import numpy as np
|
| 51 |
-
from
|
| 52 |
from matchms.importing import load_from_mgf
|
| 53 |
from matchms import calculate_scores
|
| 54 |
import matplotlib.pyplot as plt
|
|
@@ -94,7 +94,6 @@ def run(r_filepath:Path, q_filepath:Path,
|
|
| 94 |
score = tempfile.NamedTemporaryFile(suffix='.npz', delete=False)
|
| 95 |
np.savez(score.name, scores=scores)
|
| 96 |
|
| 97 |
-
|
| 98 |
import pickle
|
| 99 |
pickle_ = tempfile.NamedTemporaryFile(suffix='.pickle', delete=False)
|
| 100 |
|
|
|
|
| 48 |
assert q_filepath is not None, "Query file is missing."
|
| 49 |
import tempfile
|
| 50 |
import numpy as np
|
| 51 |
+
from simms.similarity import CudaCosineGreedy
|
| 52 |
from matchms.importing import load_from_mgf
|
| 53 |
from matchms import calculate_scores
|
| 54 |
import matplotlib.pyplot as plt
|
|
|
|
| 94 |
score = tempfile.NamedTemporaryFile(suffix='.npz', delete=False)
|
| 95 |
np.savez(score.name, scores=scores)
|
| 96 |
|
|
|
|
| 97 |
import pickle
|
| 98 |
pickle_ = tempfile.NamedTemporaryFile(suffix='.pickle', delete=False)
|
| 99 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
matchms>=0.
|
| 2 |
numba
|
| 3 |
rdkit
|
| 4 |
pooch
|
|
@@ -9,5 +9,5 @@ pyyaml
|
|
| 9 |
python-dotenv
|
| 10 |
joblib
|
| 11 |
pytest
|
| 12 |
-
|
| 13 |
gradio
|
|
|
|
| 1 |
+
matchms>=0.28.2
|
| 2 |
numba
|
| 3 |
rdkit
|
| 4 |
pooch
|
|
|
|
| 9 |
python-dotenv
|
| 10 |
joblib
|
| 11 |
pytest
|
| 12 |
+
simms @ git+https://github.com/pangeai/simms@main
|
| 13 |
gradio
|