Skip to content

Commit aaa3b4a

Browse files
Merge pull request #452 from RelevanceAI/development
v0.32.5
2 parents e8fe98f + a56feba commit aaa3b4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ai_transform/api/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def insert_temp_local_media(self, file_path_or_bytes: Union[str, bytes], ext: st
8989
media_content = bytes(fn_byte.read())
9090
if ext is None:
9191
_, ext = os.path.splitext(file_path_or_bytes)
92-
ext = ext[1:] # remove leading `.`
93-
92+
ext = ext[1:] # remove leading `.`
93+
9494
elif isinstance(file_path_or_bytes, bytes):
9595
media_content = file_path_or_bytes
9696
if ext is None:
@@ -102,7 +102,7 @@ def insert_temp_local_media(self, file_path_or_bytes: Union[str, bytes], ext: st
102102
data = self.api._get_temp_file_upload_url(ext)
103103
upload_url = data["upload_url"]
104104
download_url = data["download_url"]
105-
105+
106106
response = self.api._upload_temporary_media(presigned_url=upload_url, media_content=media_content)
107107
ic(response.content)
108108
return {"download_url": download_url}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from ai_transform import __version__
44

5-
requirements = ["tqdm>=4.49.0", "requests>=2.0.0", "pandas>=1.5.0", "pydantic>=1.10.2", "icecream==2.1.3", "typing-extensions==4.7.1"]
5+
requirements = ["tqdm>=4.49.0", "requests>=2.0.0", "pandas>=1.5.0", "pydantic==1.10.2", "icecream==2.1.3"]
66

77
ray_requirements = ["numpy>=1.19.0", "pyarrow==9.0.0", "ray==2.0.0"]
88

0 commit comments

Comments
 (0)