Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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():
|