cleanup gitignore
This commit is contained in:
parent
4dbbecc131
commit
9986109947
19
.gitignore
vendored
19
.gitignore
vendored
|
@ -1 +1,18 @@
|
||||||
.venv/
|
# general
|
||||||
|
**/.DS_Store
|
||||||
|
**/.env*
|
||||||
|
**/next-env.d.ts
|
||||||
|
|
||||||
|
# python
|
||||||
|
**/.venv/
|
||||||
|
**/__pycache__/
|
||||||
|
**/models
|
||||||
|
|
||||||
|
# nextjs
|
||||||
|
**/.next/
|
||||||
|
**/node_modules/
|
||||||
|
**/out/
|
||||||
|
|
||||||
|
# src-tauri
|
||||||
|
**/target/
|
||||||
|
**/gen/schemas
|
40
client/.gitignore
vendored
40
client/.gitignore
vendored
|
@ -1,40 +0,0 @@
|
||||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
||||||
|
|
||||||
# dependencies
|
|
||||||
/node_modules
|
|
||||||
/.pnp
|
|
||||||
.pnp.*
|
|
||||||
.yarn/*
|
|
||||||
!.yarn/patches
|
|
||||||
!.yarn/plugins
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/versions
|
|
||||||
|
|
||||||
# testing
|
|
||||||
/coverage
|
|
||||||
|
|
||||||
# next.js
|
|
||||||
/.next/
|
|
||||||
/out/
|
|
||||||
|
|
||||||
# production
|
|
||||||
/build
|
|
||||||
|
|
||||||
# misc
|
|
||||||
.DS_Store
|
|
||||||
*.pem
|
|
||||||
|
|
||||||
# debug
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
|
|
||||||
# env files (can opt-in for committing if needed)
|
|
||||||
.env*
|
|
||||||
|
|
||||||
# vercel
|
|
||||||
.vercel
|
|
||||||
|
|
||||||
# typescript
|
|
||||||
*.tsbuildinfo
|
|
||||||
next-env.d.ts
|
|
|
@ -2,12 +2,6 @@ from flask import Flask, request, jsonify
|
||||||
import joblib
|
import joblib
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# first see if the trained model file exists
|
|
||||||
if os.path.exists("model.pkl"):
|
|
||||||
model = joblib.load("model.pkl")
|
|
||||||
else:
|
|
||||||
raise FileNotFoundError("The model.pkl file does not exist.")
|
|
||||||
|
|
||||||
# load the model
|
# load the model
|
||||||
model = joblib.load("model.pkl")
|
model = joblib.load("model.pkl")
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue