Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/COS301-SE-2024/occupi in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
waveyboym committed Sep 25, 2024
2 parents d3bba27 + 55812ed commit 41b7cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python-code/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Initialize the Flask application
app = Flask(__name__)

CORS(app, resources={r"/*": {"origins": ["*"]}})
CORS(app, resources={r"/*": {"origins": ["https://dev.occupi.tech, https://occupi.tech"]}})

# Load the scaler
scaler = joblib.load('attendance_scaler.pkl')
Expand Down
2 changes: 1 addition & 1 deletion python-code/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from sklearn.preprocessing import StandardScaler
import logging

# Define the URL for the TensorFlow Serving API for both daily and hourly model
# Define the URL for the TensorFlow Serving API for both daily and hourly models
daily_model_url = 'http://model:8501/v1/models/attendance_model:predict'
hourly_model_url = 'http://hourly-model:8501/v1/models/hourly_attendance_model:predict' # Adjust the URL as needed

Expand Down

0 comments on commit 41b7cae

Please sign in to comment.