소스 검색

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

tags/1.7.2
呆萌闷油瓶 3 달 전
부모
커밋
ab7c2cf000
No account linked to committer's email address
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]}

Loading…
취소
저장