Instructions to use dbernsohn/t5_wikisql_SQL2en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dbernsohn/t5_wikisql_SQL2en with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("dbernsohn/t5_wikisql_SQL2en") model = AutoModelForSeq2SeqLM.from_pretrained("dbernsohn/t5_wikisql_SQL2en") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ model = AutoModelWithLMHead.from_pretrained("dbernsohn/t5_wikisql_SQL2en")
|
|
| 18 |
You can then use this model to translate SQL queries into plain english.
|
| 19 |
|
| 20 |
```python
|
| 21 |
-
query = "SELECT
|
| 22 |
input_text = f"translate SQL to English: {query} </s>"
|
| 23 |
features = tokenizer([input_text], return_tensors='pt')
|
| 24 |
|
|
|
|
| 18 |
You can then use this model to translate SQL queries into plain english.
|
| 19 |
|
| 20 |
```python
|
| 21 |
+
query = "SELECT people FROM peoples where age > 10"
|
| 22 |
input_text = f"translate SQL to English: {query} </s>"
|
| 23 |
features = tokenizer([input_text], return_tensors='pt')
|
| 24 |
|