DaniilAlpha commited on
Commit
8c66aa9
·
1 Parent(s): d408232

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -5
main.py CHANGED
@@ -4,9 +4,6 @@ from transformers import pipeline
4
 
5
  app = FastAPI()
6
 
7
- pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
8
-
9
  @app.get("/")
10
- def index(input):
11
- output = pipe_flan(input)
12
- return {"output": output[0]["generated_text"]}
 
4
 
5
  app = FastAPI()
6
 
 
 
7
  @app.get("/")
8
+ def index():
9
+ return {"output": "Hello world!"}