Skip to content

Commit

Permalink
Update inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rishsriv authored Jan 31, 2024
1 parent c167d34 commit 243102a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def run_inference(question, prompt_file="prompt.md", metadata_file="metadata.sql
eos_token_id=eos_token_id,
pad_token_id=eos_token_id,
)[0]["generated_text"]
.split("# SQL\n")[-1]
.split("```")[0]
.split("```")[1]
.split(";")[0]
.strip()
+ ";"
Expand Down

0 comments on commit 243102a

Please sign in to comment.