Skip to content

Commit

Permalink
Update imports to work with gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
csaudiodesign committed Dec 4, 2023
1 parent d9c0bda commit bea3c36
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions batdetect2_gui/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
session,
)

from batdetect2_gui import config
from batdetect2_gui import generate_data as gd
import config
import generate_data as gd

application = Flask(__name__)
application.secret_key = config.SECRET_KEY
Expand Down
2 changes: 1 addition & 1 deletion batdetect2_gui/audio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from PIL import Image

from batdetect2_gui import wavfile
import wavfile


def generate_spectrogram(audio, sampling_rate, params):
Expand Down
4 changes: 2 additions & 2 deletions batdetect2_gui/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import numpy as np
from PIL import Image

from batdetect2_gui import audio_utils as au
from batdetect2_gui import wavfile
import audio_utils as au
import wavfile


def compute_audio_data(annotation, audio_dir, playback_time_expansion):
Expand Down
4 changes: 2 additions & 2 deletions batdetect2_gui/prepare_audio_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import numpy as np

from batdetect2_gui import audio_utils as au
from batdetect2_gui import wavfile
import audio_utils as au
import wavfile


def parse_args():
Expand Down

0 comments on commit bea3c36

Please sign in to comment.