Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from contextlib import asynccontextmanager
|
|
| 8 |
@asynccontextmanager
|
| 9 |
async def lifespan(app: FastAPI):
|
| 10 |
global needModel
|
| 11 |
-
needModel = pipeline("
|
| 12 |
yield
|
| 13 |
|
| 14 |
app = FastAPI(lifespan=lifespan)
|
|
|
|
| 8 |
@asynccontextmanager
|
| 9 |
async def lifespan(app: FastAPI):
|
| 10 |
global needModel
|
| 11 |
+
needModel = pipeline("sentiment-analysis")
|
| 12 |
yield
|
| 13 |
|
| 14 |
app = FastAPI(lifespan=lifespan)
|