浏览代码

minor fix: Object of type int64 is not JSON serializable (#23109)

tags/1.7.2
呆萌闷油瓶 3 个月前
父节点
当前提交
ab7c2cf000
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/services/annotation_service.py

+ 1
- 1
api/services/annotation_service.py 查看文件

@@ -280,7 +280,7 @@ class AppAnnotationService:

try:
# Skip the first row
df = pd.read_csv(file)
df = pd.read_csv(file, dtype=str)
result = []
for index, row in df.iterrows():
content = {"question": row.iloc[0], "answer": row.iloc[1]}

正在加载...
取消
保存