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

This commit is contained in:
呆萌闷油瓶 2025-07-29 21:40:03 +08:00 committed by GitHub
parent 6914c1c85e
commit ab7c2cf000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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