Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import gradio as gr
|
|
| 5 |
def main():
|
| 6 |
description = "Querying a csv using TAPEX model. You can ask a question about tabular data. TAPAS model " \
|
| 7 |
"will produce the result. Finetuned TAPEX model runs on max 5000 rows and 20 columns data. " \
|
| 8 |
-
"A sample data of
|
| 9 |
|
| 10 |
article = "<p style='text-align: center'><a href='https://unscrambl.com/' target='_blank'>Unscrambl</a> | <a href='https://huggingface.co/google/tapas-base-finetuned-wtq' target='_blank'>TAPAS Model</a></p><center><img src='https://visitor-badge.glitch.me/badge?page_id=abaranovskij_tablequery' alt='visitor badge'></center>"
|
| 11 |
|
|
@@ -15,9 +15,9 @@ def main():
|
|
| 15 |
outputs=[gr.JSON(label="Result"),
|
| 16 |
gr.Dataframe(label="All data")],
|
| 17 |
examples=[
|
| 18 |
-
["What is the highest order_amount?", "
|
| 19 |
-
["Which user_id has the highest order_amount?", "
|
| 20 |
-
["Which payment method was used the most?", "
|
| 21 |
],
|
| 22 |
title="Table Question Answering (TAPEX)",
|
| 23 |
description=description,
|
|
|
|
| 5 |
def main():
|
| 6 |
description = "Querying a csv using TAPEX model. You can ask a question about tabular data. TAPAS model " \
|
| 7 |
"will produce the result. Finetuned TAPEX model runs on max 5000 rows and 20 columns data. " \
|
| 8 |
+
"A sample data of Retail sales data is provided"
|
| 9 |
|
| 10 |
article = "<p style='text-align: center'><a href='https://unscrambl.com/' target='_blank'>Unscrambl</a> | <a href='https://huggingface.co/google/tapas-base-finetuned-wtq' target='_blank'>TAPAS Model</a></p><center><img src='https://visitor-badge.glitch.me/badge?page_id=abaranovskij_tablequery' alt='visitor badge'></center>"
|
| 11 |
|
|
|
|
| 15 |
outputs=[gr.JSON(label="Result"),
|
| 16 |
gr.Dataframe(label="All data")],
|
| 17 |
examples=[
|
| 18 |
+
["What is the highest order_amount?", "Retail_sales_dataset.csv"],
|
| 19 |
+
["Which user_id has the highest order_amount?", "Retail_sales_dataset.csv"],
|
| 20 |
+
["Which payment method was used the most?", "Retail_sales_dataset.csv"]
|
| 21 |
],
|
| 22 |
title="Table Question Answering (TAPEX)",
|
| 23 |
description=description,
|