Skip to content

Commit

Permalink
[FIX] Docker image for Google Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCretois committed Sep 29, 2023
1 parent 5bf8189 commit ff6f36b
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 307 deletions.
2 changes: 0 additions & 2 deletions analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ exec docker run \
snowmobile \
--input /data/"$FILENAME"

#ghcr.io/ninanor/snowmobile_analyzer:main


3 changes: 2 additions & 1 deletion cloud_analysis/Dockerfile → cloud_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ RUN cd ../
COPY . ./
RUN poetry config virtualenvs.create false
RUN poetry install --no-root

RUN poetry add distlib
RUN poetry add Flask


ENV PYTHONPATH "${PYTHONPATH}:/app:/app/audioclip:/app:/app/src"
Expand Down
File renamed without changes.
21 changes: 2 additions & 19 deletions cloud_analysis/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,6 @@ def process_audio_endpoint():


if __name__ == "__main__":


parser = argparse.ArgumentParser()

parser.add_argument(
"--input",
help="Path to the file to analyze",
required=True,
type=str,
)

cli_args = parser.parse_args()

on_process_audio("my-audio-id", {
"location": {
"latitude": 0,
"longitude": 0
}
}, cli_args.input)

app.run(host='0.0.0.0', port=8080)

106 changes: 0 additions & 106 deletions main.py

This file was deleted.

Loading

0 comments on commit ff6f36b

Please sign in to comment.