taskforce-dev commited on
Commit
3ae88eb
·
1 Parent(s): 0b0436e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  def process_csv(input_file):
5
 
6
  # Load the CSV file with MS932 encoding
7
- df = pd.read_csv(input_file.name, encoding="UTF-8", header=0)
8
 
9
  #伝票連番が空白の行を削除する
10
  df = df.dropna(subset=["伝票連番"])
@@ -117,7 +117,7 @@ def process_csv(input_file):
117
 
118
  # Save the modified dataframe to the output file
119
  output_file_path = 'processed_file.csv'
120
- df.to_csv(output_file_path, index=False)
121
 
122
  return output_file_path
123
 
 
4
  def process_csv(input_file):
5
 
6
  # Load the CSV file with MS932 encoding
7
+ df = pd.read_csv(input_file.name, encoding="MS932", header=0)
8
 
9
  #伝票連番が空白の行を削除する
10
  df = df.dropna(subset=["伝票連番"])
 
117
 
118
  # Save the modified dataframe to the output file
119
  output_file_path = 'processed_file.csv'
120
+ df.to_csv(output_file_path, index=False, encoding="MS932")
121
 
122
  return output_file_path
123