Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ from fastapi import FastAPI, Request
|
|
2 |
from fastapi.responses import HTMLResponse, PlainTextResponse
|
3 |
from fastapi.templating import Jinja2Templates
|
4 |
import uvicorn
|
|
|
5 |
subprocess.run(["pip", "install", "transformers"], check=True)
|
6 |
from transformers import pipeline
|
7 |
|
|
|
2 |
from fastapi.responses import HTMLResponse, PlainTextResponse
|
3 |
from fastapi.templating import Jinja2Templates
|
4 |
import uvicorn
|
5 |
+
import subprocess
|
6 |
subprocess.run(["pip", "install", "transformers"], check=True)
|
7 |
from transformers import pipeline
|
8 |
|