Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,10 @@ spider_dataset = load_dataset("spider", split='train') # Load a subset of the d
|
|
9 |
table_names = set()
|
10 |
column_names = set()
|
11 |
for item in spider_dataset:
|
12 |
-
for table in item['
|
13 |
table_names.add(table)
|
14 |
-
for column in item['
|
15 |
-
column_names.add(column
|
16 |
|
17 |
# Load tokenizer and model
|
18 |
tokenizer = AutoTokenizer.from_pretrained("mrm8488/t5-base-finetuned-wikiSQL") # Update this to a model fine-tuned on Spider if available
|
|
|
9 |
table_names = set()
|
10 |
column_names = set()
|
11 |
for item in spider_dataset:
|
12 |
+
for table in item['db_id']:
|
13 |
table_names.add(table)
|
14 |
+
for column in item['question']:
|
15 |
+
column_names.add(column)
|
16 |
|
17 |
# Load tokenizer and model
|
18 |
tokenizer = AutoTokenizer.from_pretrained("mrm8488/t5-base-finetuned-wikiSQL") # Update this to a model fine-tuned on Spider if available
|