请求实体太大:空间推送

问题描述 投票:0回答:1

我尝试使用空格推送将我的代码推入

deta space
,但出现这样的错误,

PS C:\Users\user1\game_rec> space push
Validating your Spacefile...

Your Spacefile looks good, proceeding with your push!

✓ Successfully started your build!
✓ Successfully pushed your Spacefile!
! Failed to push code: failed to push code, Request entity too large
Error: failed to push code, Request entity too large

这是我的文件结构及其大小。

game_rec
   |__.space (141 bytes)
   |__app.py (2 KB)
   |__requirements.txt
   |__games.pkl (1.80 MB)
   |__similarities.pkl (930 MB)
   |__.gitignore (1 KB)
   |__Spacefile (1 KB)

我的空间文件如下所示:

# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
micros:
  - name: game_Rec
    src: .
    engine: python3.9
    run: streamlit run:app.py

我认为

similarities.pkl
可能是由于其尺寸太大而导致问题,我该怎么办?

python push pickle streamlit
1个回答
0
投票

我遇到了同样的问题,发现我们可以使用

.spaceignore
文件来忽略我们不想推送到您的空间的内容。

有关详细信息,请查看文档:Space Runtime - Space Docs

© www.soinside.com 2019 - 2024. All rights reserved.