JacksonLark
commited on
Commit
•
cb5e623
1
Parent(s):
caf9ac3
Update README.md
Browse files
README.md
CHANGED
@@ -30,7 +30,7 @@ model = T5ForConditionalGeneration.from_pretrained("LarkAI/codet5p-770m_nl2sql_o
|
|
30 |
text = "Given the following schema:\ntrack (Track_ID, Name, Location, Seating, Year_Opened)\nrace (Race_ID, Name, Class, Date, Track_ID)\nWrite a SQL query to count the number of tracks."
|
31 |
inputs = tokenizer.encode(text, return_tensors="pt").to(device)
|
32 |
output_ids = model.generate(inputs, max_length=512)
|
33 |
-
response_text =
|
34 |
# SELECT COUNT( * ) FROM track
|
35 |
```
|
36 |
|
|
|
30 |
text = "Given the following schema:\ntrack (Track_ID, Name, Location, Seating, Year_Opened)\nrace (Race_ID, Name, Class, Date, Track_ID)\nWrite a SQL query to count the number of tracks."
|
31 |
inputs = tokenizer.encode(text, return_tensors="pt").to(device)
|
32 |
output_ids = model.generate(inputs, max_length=512)
|
33 |
+
response_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
34 |
# SELECT COUNT( * ) FROM track
|
35 |
```
|
36 |
|