Spaces:
Sleeping
Sleeping
change to app
Browse files- Dockerfile +1 -1
- app.py +1 -1
Dockerfile
CHANGED
@@ -28,4 +28,4 @@ WORKDIR $HOME/app
|
|
28 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
29 |
COPY --chown=user . $HOME/app
|
30 |
|
31 |
-
CMD ["uvicorn", "
|
|
|
28 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
29 |
COPY --chown=user . $HOME/app
|
30 |
|
31 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
@@ -46,7 +46,7 @@ pipe = pipeline("document-question-answering", model="impira/layoutlm-document-q
|
|
46 |
# return output
|
47 |
|
48 |
@app.get("/")
|
49 |
-
def
|
50 |
return {"Hello":"world"}
|
51 |
|
52 |
@app.get("/hello")
|
|
|
46 |
# return output
|
47 |
|
48 |
@app.get("/")
|
49 |
+
def read_root():
|
50 |
return {"Hello":"world"}
|
51 |
|
52 |
@app.get("/hello")
|