Skip to content

Commit

Permalink
fix(api): Fixed the way of running the app
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Aug 19, 2024
1 parent 868e75f commit b198383
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/rapidocr_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ def main():
parser.add_argument("-p", "--port", type=int, default=9003, help="IP port")
args = parser.parse_args()

cur_file_path = Path(__file__).resolve()
app_path = f"{cur_file_path.parent.name}.{cur_file_path.stem}:app"
print(app_path)
uvicorn.run(app_path, host=args.ip, port=args.port, reload=True)
uvicorn.run("api:app", host=args.ip, port=args.port, reload=True)


if __name__ == "__main__":
Expand Down

0 comments on commit b198383

Please sign in to comment.