Ld75 commited on
Commit
af84c9d
·
1 Parent(s): 0f9283e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ def healthcheck():
23
  #pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
24
  #pipeline("file.wav")
25
  return {"output":"OK"}
26
- @app.get("/en")
27
  def stt(input):
28
 
29
  dataset = load_dataset("PolyAI/minds14", name="en-US", split="train")
@@ -33,7 +33,7 @@ def stt(input):
33
 
34
  @app.get("/")
35
  def index() -> FileResponse:
36
- return FileResponse(path="/index.html", media_type="text/html")
37
 
38
 
39
 
 
23
  #pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
24
  #pipeline("file.wav")
25
  return {"output":"OK"}
26
+ @app.get("/stt")
27
  def stt(input):
28
 
29
  dataset = load_dataset("PolyAI/minds14", name="en-US", split="train")
 
33
 
34
  @app.get("/")
35
  def index() -> FileResponse:
36
+ return FileResponse(path="/app/index.html", media_type="text/html")
37
 
38
 
39