Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ 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 |
-
resposta = tqa(table=df.
|
11 |
return resposta.values
|
12 |
|
13 |
# Streamlit interface
|
|
|
7 |
|
8 |
def response(user_question):
|
9 |
tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
|
10 |
+
resposta = tqa(table=df.values.tolist(), query=user_question)
|
11 |
return resposta.values
|
12 |
|
13 |
# Streamlit interface
|