Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from pydantic import BaseModel
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
# Initialize the text generation pipeline
|
| 11 |
-
pipe = pipeline("
|
| 12 |
|
| 13 |
@app.middleware("http")
|
| 14 |
async def log_requests(request: Request, call_next):
|
|
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
# Initialize the text generation pipeline
|
| 11 |
+
pipe = pipeline("text-generation", model="microsoft/Phi-3.5-mini-instruct", trust_remote_code=True)
|
| 12 |
|
| 13 |
@app.middleware("http")
|
| 14 |
async def log_requests(request: Request, call_next):
|