Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from fastapi.requests import Request
|
|
| 6 |
app = FastAPI()
|
| 7 |
|
| 8 |
# Initialize the text generation pipeline
|
| 9 |
-
pipe = pipeline("
|
| 10 |
|
| 11 |
@app.middleware("http")
|
| 12 |
async def log_requests(request: Request, call_next):
|
|
|
|
| 6 |
app = FastAPI()
|
| 7 |
|
| 8 |
# Initialize the text generation pipeline
|
| 9 |
+
pipe = pipeline("text-generation", model="microsoft/Phi-3-mini-4k-instruct")
|
| 10 |
|
| 11 |
@app.middleware("http")
|
| 12 |
async def log_requests(request: Request, call_next):
|