Spaces:
Build error
Build error
Update app.py
Browse files
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
|
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"
|