Commit 6c38bab9 authored by sikhin.vc's avatar sikhin.vc

Update app.py

parent 7ab18e7b
Pipeline #49725 failed with stage
...@@ -26,7 +26,7 @@ app = FastAPI() ...@@ -26,7 +26,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:
...@@ -49,5 +49,5 @@ def extract_text_diectly(file: bytes = File(...)): ...@@ -49,5 +49,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