Spaces:
Runtime error
Runtime error
nicer
Browse files- Dockerfile +0 -2
- app.py +2 -0
Dockerfile
CHANGED
|
@@ -40,6 +40,4 @@ WORKDIR $HOME/app
|
|
| 40 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 41 |
COPY --chown=user . $HOME/app
|
| 42 |
|
| 43 |
-
CMD ["python", "setup.py build develop --user"]
|
| 44 |
-
|
| 45 |
CMD ["python", "app.py"]
|
|
|
|
| 40 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 41 |
COPY --chown=user . $HOME/app
|
| 42 |
|
|
|
|
|
|
|
| 43 |
CMD ["python", "app.py"]
|
app.py
CHANGED
|
@@ -12,6 +12,8 @@ import warnings
|
|
| 12 |
|
| 13 |
warnings.filterwarnings("ignore")
|
| 14 |
|
|
|
|
|
|
|
| 15 |
from maskrcnn_benchmark.config import cfg
|
| 16 |
from maskrcnn_benchmark.engine.predictor_glip import GLIPDemo
|
| 17 |
|
|
|
|
| 12 |
|
| 13 |
warnings.filterwarnings("ignore")
|
| 14 |
|
| 15 |
+
os.system("python setup.py build develop --user")
|
| 16 |
+
|
| 17 |
from maskrcnn_benchmark.config import cfg
|
| 18 |
from maskrcnn_benchmark.engine.predictor_glip import GLIPDemo
|
| 19 |
|