cleanup gitignore

This commit is contained in:
Vomitblood 2024-12-02 20:54:51 +08:00
parent 4dbbecc131
commit 9986109947
4 changed files with 18 additions and 47 deletions

19
.gitignore vendored
View file

@ -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
View file

@ -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

View file

@ -2,12 +2,6 @@ from flask import Flask, request, jsonify
import joblib
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
model = joblib.load("model.pkl")

Binary file not shown.