Spaces:
Sleeping
Sleeping
danieaneta
commited on
Commit
·
85176f4
1
Parent(s):
55fdec4
fixed errors
Browse files- Dockerfile +2 -1
- depth_est.py +0 -3
Dockerfile
CHANGED
|
@@ -17,6 +17,7 @@ ENV HOME=/home/user \
|
|
| 17 |
WORKDIR $HOME/app
|
| 18 |
|
| 19 |
COPY --chown=user . $HOME/app
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
|
|
|
|
| 17 |
WORKDIR $HOME/app
|
| 18 |
|
| 19 |
COPY --chown=user . $HOME/app
|
| 20 |
+
|
| 21 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 22 |
|
| 23 |
|
depth_est.py
CHANGED
|
@@ -6,9 +6,6 @@ import io
|
|
| 6 |
import numpy as np
|
| 7 |
import os
|
| 8 |
|
| 9 |
-
|
| 10 |
-
# os.environ['HF_HOME'] = '/hf_cache'
|
| 11 |
-
|
| 12 |
def convert_img_base64(img):
|
| 13 |
with open(img, 'rb') as file:
|
| 14 |
base64_image = base64.b64encode(file.read())
|
|
|
|
| 6 |
import numpy as np
|
| 7 |
import os
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
def convert_img_base64(img):
|
| 10 |
with open(img, 'rb') as file:
|
| 11 |
base64_image = base64.b64encode(file.read())
|