fschwartzer commited on
Commit
327556b
1 Parent(s): 2288889

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,8 +7,9 @@ df = pd.read_excel('CG.xlsx')
7
 
8
  def response(user_question):
9
  tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
10
- table_data = df.fillna(0, inplace=True)
11
- table_data = table_data.astype(str)
 
12
  resposta = tqa(table=table_data , query=user_question)['cells'][0]
13
  return resposta
14
 
 
7
 
8
  def response(user_question):
9
  tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
10
+ df.fillna(0, inplace=True)
11
+ table_data = df.astype(str)
12
+ print(table_data.head())
13
  resposta = tqa(table=table_data , query=user_question)['cells'][0]
14
  return resposta
15