diff --git a/src/serve.py b/src/serve.py index a168ca8..3f6fdc0 100644 --- a/src/serve.py +++ b/src/serve.py @@ -34,7 +34,7 @@ def make_file_analyzer(analysis_endpoint): def analyze_file(file_path): predictions = requests.post(analysis_endpoint, data=open(file_path, "rb")) predictions.raise_for_status() - predictions = predictions.json() + predictions = predictions.json() return predictions return analyze_file