sarim commited on
Commit
69df7bc
·
1 Parent(s): a0408df

change to app

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. 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", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
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 root():
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")