Spaces:
Build error
Build error
added the home route
Browse files- Dockerfile +2 -3
- app/main/routes.py +2 -1
Dockerfile
CHANGED
|
@@ -12,9 +12,8 @@ RUN apt-get update && \
|
|
| 12 |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 pip vim mc wget curl
|
| 13 |
|
| 14 |
# to make open-cv work
|
| 15 |
-
RUN apt-get install ffmpeg libsm6 libxext6
|
| 16 |
-
|
| 17 |
-
RUN apt-get install python3-mysql.connector -y
|
| 18 |
|
| 19 |
|
| 20 |
COPY . /app
|
|
|
|
| 12 |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 pip vim mc wget curl
|
| 13 |
|
| 14 |
# to make open-cv work
|
| 15 |
+
RUN apt-get install ffmpeg libsm6 libxext6 -y
|
| 16 |
+
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
COPY . /app
|
app/main/routes.py
CHANGED
|
@@ -3,4 +3,5 @@ from app.main import bp
|
|
| 3 |
|
| 4 |
@bp.route("/")
|
| 5 |
def index():
|
| 6 |
-
return
|
|
|
|
|
|
| 3 |
|
| 4 |
@bp.route("/")
|
| 5 |
def index():
|
| 6 |
+
return "<h1>This is the home page of face rec api</h1>"
|
| 7 |
+
# return redirect("/demo/")
|