From 21eaa2ec5a9ab08735d17130f6d5dc37a1a53d58 Mon Sep 17 00:00:00 2001 From: Yanli Date: Thu, 4 Jul 2024 19:04:19 +0800 Subject: [PATCH] delete gzip --- scripts/runpod_api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/runpod_api.py b/scripts/runpod_api.py index 8334a388..4ce6aeba 100644 --- a/scripts/runpod_api.py +++ b/scripts/runpod_api.py @@ -3,7 +3,6 @@ import dotenv import runpod import base64 -import gzip import numpy as np from pydantic import BaseModel, Field from pydub import AudioSegment @@ -45,7 +44,7 @@ def _encode_string(sr: int, data: np.ndarray) -> bytes: ) bytes_data = in_memory_file.read() print(len(bytes_data)) - return base64.standard_b64encode(gzip.compress(bytes_data)) + return base64.standard_b64encode(bytes_data) def handler_fn(job):