Ld75 commited on
Commit
042f554
·
1 Parent(s): 96dd1aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,14 +6,14 @@ from fastapi.staticfiles import StaticFiles
6
  from fastapi.responses import FileResponse
7
  #from pyannote.audio import Pipeline
8
 
9
- #from transformers import pipeline
10
 
11
  app = FastAPI()
12
 
13
  #pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
14
-
15
  @app.get("/")
16
- def t5(input):
17
 
18
  #output = pipe_flan(input)
19
  #pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
 
6
  from fastapi.responses import FileResponse
7
  #from pyannote.audio import Pipeline
8
 
9
+ from transformers import pipeline # le framework de huggingface
10
 
11
  app = FastAPI()
12
 
13
  #pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
14
+ classifier = pipeline("automatic-speech-recognition")# la liste des pipelines de huggingface est disponible ici :https://huggingface.co/docs/transformers/quicktour
15
  @app.get("/")
16
+ def t5():
17
 
18
  #output = pipe_flan(input)
19
  #pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")