Commit ce8aed7c authored by Sikhin VC's avatar Sikhin VC
parents be120938 6c38bab9
Pipeline #49803 failed with stage
...@@ -28,7 +28,7 @@ app = FastAPI() ...@@ -28,7 +28,7 @@ app = FastAPI()
@app.post("/") @app.post("/Text_recognition")
def extract_text_diectly(file: bytes = File(...)): def extract_text_diectly(file: bytes = File(...)):
try: try:
...@@ -51,5 +51,5 @@ def extract_text_diectly(file: bytes = File(...)): ...@@ -51,5 +51,5 @@ def extract_text_diectly(file: bytes = File(...)):
print(e) print(e)
if __name__ == '__main__': if __name__ == '__main__':
uvicorn.run("app:app", host="localhost", port=8290) uvicorn.run("app:app", host="0.0.0.0", port=8290)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment