rdose commited on
Commit
e5ce64a
·
1 Parent(s): bf27f5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -112,10 +112,10 @@ def _inference_classifier(text):
112
 
113
  def inference(file_in,file_col_name,input_batch,isurl,use_archive,limit_companies=10):
114
  input_batch_content = []
115
- if file_in is not None:
116
- print("[i] Input is file:",file_in)
117
  dft = pd.read_csv(
118
- file_in,
119
  compression=dict(method='zip')
120
  )
121
  assert file_col_name in dft.columns, "Indicated col_name not found in file"
 
112
 
113
  def inference(file_in,file_col_name,input_batch,isurl,use_archive,limit_companies=10):
114
  input_batch_content = []
115
+ if file_in.name is not "":
116
+ print("[i] Input is file:",file_in.name)
117
  dft = pd.read_csv(
118
+ file_in.name,
119
  compression=dict(method='zip')
120
  )
121
  assert file_col_name in dft.columns, "Indicated col_name not found in file"