gpt4 book ai didi

python - Google Colaboratory - 超出最大调用堆栈大小

转载 作者:行者123 更新时间:2023-12-01 01:15:04 35 4
gpt4 key购买 nike

当我尝试上传 json 文件时,出现 MessageError: RangeError: Maximum call stack size returned,我认为问题出在大小上。

我尝试使用函数 files.upload() 在 Google Colaboratory 上上传 187Kb json 文件,但它给出了错误“MessageError: RangeError: Maximum call stack size gone.”当我尝试在侧边栏上手动上传时,它只是不断加载。还有另一种上传此文件的方法吗?

最佳答案

您可以先将其上传到 Google 云端硬盘。然后调用 mount 来访问 Google 云端硬盘内容。

from google.colab import drive
drive.mount('drive')
# your file should be in drive/My\ Drive/

关于python - Google Colaboratory - 超出最大调用堆栈大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54430763/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com