mirror of
https://github.com/langgenius/dify.git
synced 2025-08-12 19:27:37 +00:00
minor fix: Object of type int64 is not JSON serializable (#23109)
This commit is contained in:
parent
6914c1c85e
commit
ab7c2cf000
@ -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]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user