jayebaku commited on
Commit
7e77357
·
verified ·
1 Parent(s): e09ff5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -14,6 +14,7 @@ def load_and_classify_csv(file, text_field, event_model):
14
  # df = pd.read_csv(file.name)
15
  # else ".tsv" in file.name:
16
  df = pd.read_table(file.name)
 
17
 
18
  if text_field not in df.columns:
19
  raise gr.Error(f"Error: Enter text column'{text_field}' not in CSV file.")
 
14
  # df = pd.read_csv(file.name)
15
  # else ".tsv" in file.name:
16
  df = pd.read_table(file.name)
17
+ print(file.name)
18
 
19
  if text_field not in df.columns:
20
  raise gr.Error(f"Error: Enter text column'{text_field}' not in CSV file.")