Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(
|
|
9 |
qa_pipeline = pipeline("table-question-answering", model="google/tapas-large-finetuned-wtq")
|
10 |
|
11 |
def ask_table(data, question):
|
|
|
|
|
12 |
try:
|
13 |
if not data or not question:
|
14 |
return {"answer": "Please provide both a table and a question."}
|
|
|
9 |
qa_pipeline = pipeline("table-question-answering", model="google/tapas-large-finetuned-wtq")
|
10 |
|
11 |
def ask_table(data, question):
|
12 |
+
logging.info(f"Received Data: {data}")
|
13 |
+
logging.info(f"Received Question: {question}")
|
14 |
try:
|
15 |
if not data or not question:
|
16 |
return {"answer": "Please provide both a table and a question."}
|