Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,10 @@ from transformers import pipeline
|
|
5 |
app=FastAPI()
|
6 |
|
7 |
|
8 |
-
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
@app.get("/")
|
|
|
5 |
app=FastAPI()
|
6 |
|
7 |
|
8 |
+
# Use a pipeline as a high-level helper
|
9 |
+
from transformers import pipeline
|
10 |
+
|
11 |
+
pipe = pipeline("text2text-generation", model="google/flan-t5-xl")
|
12 |
|
13 |
|
14 |
@app.get("/")
|