Spaces:
Sleeping
Sleeping
杨万青 commited on
Commit ·
e0552f8
1
Parent(s): b049a22
update
Browse files
main.py
CHANGED
|
@@ -8,14 +8,14 @@ app = FastAPI()
|
|
| 8 |
def read_root():
|
| 9 |
return {"Hello": "World!"}
|
| 10 |
|
| 11 |
-
|
| 12 |
# @app.get("/ffmpeg")
|
| 13 |
# def ffmpeg(input):
|
| 14 |
# output = pipe_flan(input)
|
| 15 |
# print(output)
|
| 16 |
# return {"output": output[0]["generated_text"]}
|
| 17 |
|
| 18 |
-
pipe_flan = pipeline("text2text-generation", model="
|
| 19 |
|
| 20 |
@app.get("/infer_t5")
|
| 21 |
def t5(input):
|
|
|
|
| 8 |
def read_root():
|
| 9 |
return {"Hello": "World!"}
|
| 10 |
|
| 11 |
+
pipe_flan = pipeline("text-generation", model="codeparrot/codeparrot-small")
|
| 12 |
# @app.get("/ffmpeg")
|
| 13 |
# def ffmpeg(input):
|
| 14 |
# output = pipe_flan(input)
|
| 15 |
# print(output)
|
| 16 |
# return {"output": output[0]["generated_text"]}
|
| 17 |
|
| 18 |
+
# pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
|
| 19 |
|
| 20 |
@app.get("/infer_t5")
|
| 21 |
def t5(input):
|