Fritz02 commited on
Commit
e58ce62
1 Parent(s): 73c928b

Fix correct test in test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -2
test.py CHANGED
@@ -1,7 +1,7 @@
1
  from evaluate import load
2
  import sqlite3
3
 
4
- module = load("LuckiestOne/valid_efficiency_score")
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, execute=execute)
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)