mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-25 04:30:48 +01:00
update
This commit is contained in:
@@ -713,7 +713,7 @@ class HubApi:
|
||||
else:
|
||||
with_header = False
|
||||
chunk_df = pd.DataFrame(chunk)
|
||||
chunk_df.to_csv(f, index=False, header=with_header, encoding='utf-8')
|
||||
chunk_df.to_csv(f, index=False, header=with_header, encoding='gbk')
|
||||
iter_num += 1
|
||||
else:
|
||||
# csv or others
|
||||
|
||||
@@ -219,7 +219,7 @@ class CsvDatasetBuilder(csv.Csv):
|
||||
csv_file_path,
|
||||
iterator=False,
|
||||
delimiter=self.csv_delimiter,
|
||||
encoding='utf-8')
|
||||
encoding='gbk')
|
||||
|
||||
transform_fields = []
|
||||
for field_name in df.columns.tolist():
|
||||
|
||||
Reference in New Issue
Block a user