mirror of
https://github.com/langchain-ai/auto-evaluator.git
synced 2026-07-18 12:46:06 -04:00
[PR #90] [CLOSED] [Do Not Merge] Use compression in file transfer #104
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/auto-evaluator/pull/90
Author: @rlancemartin
Created: 5/2/2023
Status: ❌ Closed
Base:
main← Head:zip_files_transfer📝 Commits (1)
60d0e69USe compression in file transfer📊 Changes
5 files changed (+31 additions, -9 deletions)
View changed files
📝
api/evaluator_app.py(+19 -7)📝
api/requirements.txt(+2 -1)📝
nextjs/components/Playground.tsx(+4 -1)📝
nextjs/package.json(+1 -0)📝
nextjs/yarn.lock(+5 -0)📄 Description
Compress files on the client prior to transfer to server.
Odd / unhelpful error b/c I can't see where specifically it is getting thrown by the server.
Logging suggests that it's never getting to here:
Possible problem with the files
files: List[bytes] = File(...),:Trace:
Problem is with FastAPI's File class:
It expects an instance of the
UploadFile class, which provides a read() method to access the contents of the file.Interesting discussion here:
https://stackoverflow.com/questions/73442335/how-to-upload-a-large-file-%E2%89%A53gb-to-fastapi-backend
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.