From fe159bac34345752098dee71f8c3b6ace124c264 Mon Sep 17 00:00:00 2001 From: dosangyoon Date: Fri, 5 Aug 2022 14:34:46 +0900 Subject: [PATCH] init --- README.md | 11 +++++++++++ StockPredictorAPI.py | 7 +++++++ requirements.txt | 7 +++++-- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 StockPredictorAPI.py diff --git a/README.md b/README.md index a966619..c7b2eb0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ # StockPredictor + +## Troubleshoot +1. OMP: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized. + ``` + import os + os.environ[‘KMP_DUPLICATE_LIB_OK’]=’True’ + ``` + 추가하거나 다음 패키지를 설치한다. + ``` + > conda install nomkl + ``` diff --git a/StockPredictorAPI.py b/StockPredictorAPI.py new file mode 100644 index 0000000..8e3dfea --- /dev/null +++ b/StockPredictorAPI.py @@ -0,0 +1,7 @@ +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +async def root(): + return {"message": "Hello World"} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index defcaea..7bb41da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,10 @@ pandas_datareader bs4 pywin32 ipywidgets==7.0.0 -keras +#keras #https://www.lfd.uci.edu/~gohlke/pythonlibs/#h5py #pip install h5py-3.6.0-cp37-cp37m-win32.whl -image-classifiers \ No newline at end of file +#image-classifiers + +fastapi +uvicorn