Skip to content

Commit

Permalink
delete gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
BeautyyuYanli committed Jul 4, 2024
1 parent eccc81a commit 21eaa2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/runpod_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 21eaa2e

Please sign in to comment.