fschwartzer commited on
Commit
b77796f
·
verified ·
1 Parent(s): 34e67a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ df = pd.read_csv('anomalies.csv', sep=',', decimal='.')
8
  # Function to generate a response
9
  def response(question):
10
  tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
11
- final_rresposta = tqa(table=table, query=question)['cells'][0]
12
  return final_response
13
 
14
  # Streamlit interface
 
8
  # Function to generate a response
9
  def response(question):
10
  tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
11
+ final_rresposta = tqa(table=df, query=question)['cells'][0]
12
  return final_response
13
 
14
  # Streamlit interface