Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from transformers import pipeline
|
|
5 |
app=FastAPI()
|
6 |
|
7 |
# Initialize the text generation pipeline
|
8 |
-
pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
9 |
-
|
10 |
|
11 |
@app.get("/")
|
12 |
def home():
|
|
|
5 |
app=FastAPI()
|
6 |
|
7 |
# Initialize the text generation pipeline
|
8 |
+
#pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
9 |
+
pipe = pipeline("text-generation", model="openai-community/gpt2")
|
10 |
|
11 |
@app.get("/")
|
12 |
def home():
|