Skip to content

Commit

Permalink
Fix relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wyhong3103 committed Feb 16, 2024
1 parent c0c1eb0 commit a7999fc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Empty file removed backend/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from flask import Flask, request, jsonify
import cv2
import numpy as np
from .sudoku_recognition.sudoku_recognition import SudokuRecognition
from sudoku_recognition.sudoku_recognition import SudokuRecognition

app = Flask(__name__)

Expand Down
2 changes: 1 addition & 1 deletion backend/sudoku_recognition/sudoku_recognition.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import torch
from .model import CNN
from sudoku_recognition.model import CNN
import numpy as np
import cv2

Expand Down
2 changes: 1 addition & 1 deletion backend/tests/test_inference.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from ..app import app
from app import app

@pytest.fixture()
def client():
Expand Down

0 comments on commit a7999fc

Please sign in to comment.