Spaces:
Sleeping

minenjoy commited on
Commit
36983cf
·
verified ·
1 Parent(s): ead90a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,7 +33,7 @@ def compare_csvs(*files):
33
  if len(valid_files) < 2:
34
  return "Please upload at least two CSV files.", None
35
 
36
- # Read CSV files
37
  dataframes = [pd.read_csv(file.name) for file in valid_files]
38
 
39
  # Check if all dataframes have the same shape
@@ -43,7 +43,7 @@ def compare_csvs(*files):
43
  None,
44
  )
45
 
46
- # Create a combined dataframe for comparison
47
  combined_df = dataframes[0].copy()
48
  for col in combined_df.columns:
49
  combined_df[col] = [
@@ -63,7 +63,7 @@ def compare_csvs(*files):
63
 
64
 
65
  with gr.Blocks() as app:
66
- gr.Markdown("# 💕 Kindness - CSV Comparison")
67
 
68
  with gr.Row():
69
  files = [gr.File(label=f"Upload CSV {i+1}") for i in range(5)]
 
33
  if len(valid_files) < 2:
34
  return "Please upload at least two CSV files.", None
35
 
36
+ print ("Read CSV files")
37
  dataframes = [pd.read_csv(file.name) for file in valid_files]
38
 
39
  # Check if all dataframes have the same shape
 
43
  None,
44
  )
45
 
46
+ print( "Create a combined dataframe for comparison")
47
  combined_df = dataframes[0].copy()
48
  for col in combined_df.columns:
49
  combined_df[col] = [
 
63
 
64
 
65
  with gr.Blocks() as app:
66
+ gr.Markdown("verifica differenze")
67
 
68
  with gr.Row():
69
  files = [gr.File(label=f"Upload CSV {i+1}") for i in range(5)]