Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import gradio as gr
|
|
| 3 |
|
| 4 |
|
| 5 |
def main():
|
| 6 |
-
description = "Querying a csv using
|
| 7 |
-
"will produce the result. Finetuned
|
| 8 |
"A sample data of shopify store sales 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>"
|
|
@@ -19,7 +19,7 @@ def main():
|
|
| 19 |
["Which user_id has the highest order_amount?", "shopify.csv"],
|
| 20 |
["Which payment method was used the most?", "shopify.csv"]
|
| 21 |
],
|
| 22 |
-
title="Table Question Answering (
|
| 23 |
description=description,
|
| 24 |
article=article,
|
| 25 |
allow_flagging='never')
|
|
|
|
| 3 |
|
| 4 |
|
| 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 shopify store sales 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>"
|
|
|
|
| 19 |
["Which user_id has the highest order_amount?", "shopify.csv"],
|
| 20 |
["Which payment method was used the most?", "shopify.csv"]
|
| 21 |
],
|
| 22 |
+
title="Table Question Answering (TAPEX)",
|
| 23 |
description=description,
|
| 24 |
article=article,
|
| 25 |
allow_flagging='never')
|