Meena commited on
Commit
86f0e60
1 Parent(s): 55ee3d9

Update app/tapas.py

Browse files
Files changed (1) hide show
  1. app/tapas.py +1 -1
app/tapas.py CHANGED
@@ -2,7 +2,7 @@ from transformers import TapasTokenizer, TFTapasForQuestionAnswering
2
  import pandas as pd
3
 
4
  def execute_query(query, table):
5
- if table:
6
  #table = pd.read_csv(csv_file.name, delimiter=",")
7
  table.fillna(0, inplace=True)
8
  table = table.astype(str)
 
2
  import pandas as pd
3
 
4
  def execute_query(query, table):
5
+ if table.shape[0]:
6
  #table = pd.read_csv(csv_file.name, delimiter=",")
7
  table.fillna(0, inplace=True)
8
  table = table.astype(str)