rm share bc not supported/needed in spaces
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ iface = gr.Interface(
|
|
19 |
outputs="text",
|
20 |
article="\n <div style=\"white-space: pre-wrap; text-align: center\"> <h4> Training Data </h4> The model has been fine-tuned on the 7000 training examples in the Spider text-to-SQL dataset. The model solves Spider's zero-shot text-to-SQL translation task, and that means that it can generalize to unseen SQL databases. <h4> Training Objective </h4> This model was initialized with T5-3B and fine-tuned with the text-to-text generation objective. Questions are always grounded in a database schema, and the model is trained to predict the SQL query that would be used to answer the question. The input to the model is composed of the user's natural language question, the database identifier, and a list of tables and their columns: \n <small> [question] | [db_id] | [table] : [column] ( [content] , [content] ) , [column] ( ... ) , [...] | [table] : ... | ... </small> \n The model outputs the database identifier and the SQL query that will be executed on the database to answer the user's question: \n <small> [db_id] | [sql] </small> <h4> Performance </h4> Out of the box, this model achieves 71.5 % exact-set match accuracy and 74.4 % execution accuracy on the Spider development set. On the test set, the model achieves 68.0 % exact-set match accuracy and 70.1 % execution accuracy. Using the PICARD constrained decoding method (see the official PICARD implementation), the model's performance can be improved to 75.5 % exact-set match accuracy and 79.3 % execution accuracy on the Spider development set. On the test set and with PICARD, the model achieves 71.9 % exact-set match accuracy and 75.1 % execution accuracy. </div>")
|
21 |
|
22 |
-
iface.launch(
|
23 |
|
24 |
#output = query({
|
25 |
# "inputs": "The answer to the universe is",
|
|
|
19 |
outputs="text",
|
20 |
article="\n <div style=\"white-space: pre-wrap; text-align: center\"> <h4> Training Data </h4> The model has been fine-tuned on the 7000 training examples in the Spider text-to-SQL dataset. The model solves Spider's zero-shot text-to-SQL translation task, and that means that it can generalize to unseen SQL databases. <h4> Training Objective </h4> This model was initialized with T5-3B and fine-tuned with the text-to-text generation objective. Questions are always grounded in a database schema, and the model is trained to predict the SQL query that would be used to answer the question. The input to the model is composed of the user's natural language question, the database identifier, and a list of tables and their columns: \n <small> [question] | [db_id] | [table] : [column] ( [content] , [content] ) , [column] ( ... ) , [...] | [table] : ... | ... </small> \n The model outputs the database identifier and the SQL query that will be executed on the database to answer the user's question: \n <small> [db_id] | [sql] </small> <h4> Performance </h4> Out of the box, this model achieves 71.5 % exact-set match accuracy and 74.4 % execution accuracy on the Spider development set. On the test set, the model achieves 68.0 % exact-set match accuracy and 70.1 % execution accuracy. Using the PICARD constrained decoding method (see the official PICARD implementation), the model's performance can be improved to 75.5 % exact-set match accuracy and 79.3 % execution accuracy on the Spider development set. On the test set and with PICARD, the model achieves 71.9 % exact-set match accuracy and 75.1 % execution accuracy. </div>")
|
21 |
|
22 |
+
iface.launch()
|
23 |
|
24 |
#output = query({
|
25 |
# "inputs": "The answer to the universe is",
|