Skip to content

Commit

Permalink
try to fix problem ngrok 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Ammarmoulla committed Jul 24, 2023
1 parent 1d3e886 commit 78245a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI_CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker pull ammarmoulla/machine_translate:v1
docker run --entrypoint "sh" ammarmoulla/machine_translate:v1 ./fastapi/start.sh
docker run --name e2e --entrypoint "sh" ammarmoulla/machine_translate:v1 ./fastapi/start.sh
3 changes: 2 additions & 1 deletion fastapi/start.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
uvicorn server:app --host "0.0.0.0" --reload &
./ngrok http 8000
./ngrok http 8000 &
docker logs -f e2e
8 changes: 3 additions & 5 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#python3 test.py
# cd fastapi
# sh start.sh
python3 test_preprocess.py
./ngrok version
# python3 test_preprocess.py
# python3 train.py --config_path "train.yaml"
python3 inference.py --model_path "/content/machine_translate/outputs/model_Lstm_Embd.h5" --text "new jersey is sometimes quiet"
# python3 inference.py --model_path "/content/machine_translate/outputs/model_Lstm_Embd.h5" --text "new jersey is sometimes quiet"

0 comments on commit 78245a6

Please sign in to comment.