Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("/
|
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 |
|