Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

呆萌闷油瓶ab7c2cf000b1
diff --git a/api/services/annotation_service.py b/api/services/annotation_service.py
index 80dd63bf890..cfa917daf6f 100644
--- a/api/services/annotation_service.py
+++ b/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]}