Spaces:
Sleeping
Sleeping
Commit
·
179685f
1
Parent(s):
8444121
Add dockerfile
Browse files- app.py +2 -1
- dockerfile +10 -0
app.py
CHANGED
|
@@ -24,4 +24,5 @@ iface = gr.Interface(
|
|
| 24 |
description="Upload a liver CT scan NIfTI file (.nii.gz) to get the segmentation result."
|
| 25 |
)
|
| 26 |
|
| 27 |
-
|
|
|
|
|
|
| 24 |
description="Upload a liver CT scan NIfTI file (.nii.gz) to get the segmentation result."
|
| 25 |
)
|
| 26 |
|
| 27 |
+
if __name__ == "__main__":
|
| 28 |
+
iface.launch(share=True)
|
dockerfile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
WORKDIR /code
|
| 4 |
+
|
| 5 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 7 |
+
|
| 8 |
+
COPY . /code
|
| 9 |
+
|
| 10 |
+
CMD ["python", "app.py"]
|