Skip to content

Commit

Permalink
Added tailwind, Improved Homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
pathak-ashutosh committed May 18, 2024
1 parent b54c3f5 commit 2f8ae1c
Show file tree
Hide file tree
Showing 57 changed files with 354 additions and 838 deletions.
5 changes: 0 additions & 5 deletions Procfile

This file was deleted.

2 changes: 1 addition & 1 deletion backend/Model.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as tf from '@tensorflow/tfjs';
import * as mobilenet from '@tensorflow-models/mobilenet';
// import * as mobilenet from '@tensorflow-models/mobilenet';

export default class Model {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ app.post('/api/predict', upload.single('image'), async (req, res) => {
];

// Make a prediction
const isMatch = await model.predict(imageBuffer, databaseImages);
const isMatch = await Model.predict(imageBuffer, databaseImages);

// Send the prediction result
res.status(200).json({ match: isMatch });
Expand Down
Loading

0 comments on commit 2f8ae1c

Please sign in to comment.