(self, filename)
| 44 | self.model = model |
| 45 | |
| 46 | def upload_file(self, filename): |
| 47 | response = self.client.files.create( |
| 48 | file=open(filename, "rb"), |
| 49 | purpose="batch" |
| 50 | ) |
| 51 | print(response) |
| 52 | return response |
| 53 | |
| 54 | def delete_file(self, file_id): |
| 55 | response = self.client.files.delete(file_id) |