Spaces:
Sleeping
Sleeping
Fix correct test in test.py
Browse files
test.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from evaluate import load
|
2 |
import sqlite3
|
3 |
|
4 |
-
module = load("
|
5 |
|
6 |
# Create connection to the database
|
7 |
database_path = "database.sqlite"
|
@@ -39,5 +39,5 @@ sql_queries_ref = [
|
|
39 |
]
|
40 |
|
41 |
# Compute the score
|
42 |
-
results = module.compute(predictions=sql_queries_pred, references=sql_queries_ref,
|
43 |
print(results)
|
|
|
1 |
from evaluate import load
|
2 |
import sqlite3
|
3 |
|
4 |
+
module = load("Fritz02/execution_accuracy")
|
5 |
|
6 |
# Create connection to the database
|
7 |
database_path = "database.sqlite"
|
|
|
39 |
]
|
40 |
|
41 |
# Compute the score
|
42 |
+
results = module.compute(predictions=sql_queries_pred, references=sql_queries_ref, execute_func=execute)
|
43 |
print(results)
|