Instructions to use dsivakumar/text2sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dsivakumar/text2sql with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("dsivakumar/text2sql") model = AutoModelForSeq2SeqLM.from_pretrained("dsivakumar/text2sql") - Notebooks
- Google Colab
- Kaggle
Commit ·
620c22d
1
Parent(s): 6afd4d6
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,7 +8,7 @@ widget:
|
|
| 8 |
- text: "English to SQL: What is the current series where the new series began in June 2011?"
|
| 9 |
---
|
| 10 |
#import transformers
|
| 11 |
-
|
| 12 |
from transformers import (
|
| 13 |
T5ForConditionalGeneration,
|
| 14 |
T5Tokenizer,
|
|
@@ -44,4 +44,4 @@ def get_sql(query,tokenizer,model):
|
|
| 44 |
query="Show me the average age of of wines in Italy by provinces"
|
| 45 |
sql = get_sql(query,tokenizer,model)
|
| 46 |
print(sql)
|
| 47 |
-
|
|
|
|
| 8 |
- text: "English to SQL: What is the current series where the new series began in June 2011?"
|
| 9 |
---
|
| 10 |
#import transformers
|
| 11 |
+
```
|
| 12 |
from transformers import (
|
| 13 |
T5ForConditionalGeneration,
|
| 14 |
T5Tokenizer,
|
|
|
|
| 44 |
query="Show me the average age of of wines in Italy by provinces"
|
| 45 |
sql = get_sql(query,tokenizer,model)
|
| 46 |
print(sql)
|
| 47 |
+
```
|