barathm111 commited on
Commit
3a487a7
·
verified ·
1 Parent(s): 95b255d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
6
  app = FastAPI()
7
 
8
  # Initialize the text generation pipeline
9
- pipe = pipeline("text-generation", model="defog/sqlcoder-7b-2")
10
 
11
  @app.get("/")
12
  def home():
 
6
  app = FastAPI()
7
 
8
  # Initialize the text generation pipeline
9
+ pipe = pipeline("text-generation", model="defog/sqlcoder-7b-2", pad_token_id=2)
10
 
11
  @app.get("/")
12
  def home():