Skip to content

Commit

Permalink
updated and tested
Browse files Browse the repository at this point in the history
  • Loading branch information
MingghuiA committed Jun 4, 2024
1 parent 7c8303a commit d15e7f7
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 11 deletions.
64 changes: 62 additions & 2 deletions NaturalHistory_Transformer_API_v1.0/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.pyc
*.pyo
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
venv/
ENV/
build/
dist/
*.egg-info/

# PyInstaller
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Jupyter Notebook
.ipynb_checkpoints

# PyCharm
.idea/

# VS Code
.vscode/

# macOS
.DS_Store

# Windows
Thumbs.db
desktop.ini

# JetBrains IDEs
.idea/

# Environments
.env
.env.local
.env.production
.env.test

# Logs
logs/
*.log

# Docker
docker-compose.override.yml
4 changes: 3 additions & 1 deletion NaturalHistory_Transformer_API_v1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This API utilizes a transformer-based machine learning model to predict the rele
- [Getting Started](#getting-started)
- [Running the Application](#running-the-application)
- [API Documentation](#api-documentation)

- [Feedback](#feedback)

## Features

Expand Down Expand Up @@ -73,3 +73,5 @@ The API documentation is available via Swagger UI and can be accessed at:
You can use the interactive documentation to test the endpoints and understand the API.


### Feedback:
If you have any feedback or questions, please contact [email protected], [email protected].
14 changes: 7 additions & 7 deletions NaturalHistory_Transformer_API_v1.0/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ services:
source: ./app/saved_model
target: /app/saved_model

test:
build: .
env_file:
- .env
volumes:
- .:/app
command: ["python", "-m", "unittest", "discover", "-s", "tests"]
# test:
# build: .
# env_file:
# - .env
# volumes:
# - .:/app
# command: ["python", "-m", "unittest", "discover", "-s", "tests"]
5 changes: 4 additions & 1 deletion NaturalHistory_Transformer_API_v1.0/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ python-dotenv==0.21.0
uvicorn==0.18.3
fastapi==0.111.0
anyio==3.6.2
httpx==0.24.0
httpx==0.24.0
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cuda-cupti-cu12==12.1.105

0 comments on commit d15e7f7

Please sign in to comment.