Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,11 +30,6 @@ pipe = pipeline(
|
|
| 30 |
device=device,
|
| 31 |
)
|
| 32 |
|
| 33 |
-
sample = dataset[0]["audio"]
|
| 34 |
-
|
| 35 |
-
# result = pipe(sample)
|
| 36 |
-
# print(result["text"])
|
| 37 |
-
|
| 38 |
|
| 39 |
@app.post("/speech_to_text")
|
| 40 |
async def speech_to_text(file : UploadFile = File(...)):
|
|
|
|
| 30 |
device=device,
|
| 31 |
)
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
@app.post("/speech_to_text")
|
| 35 |
async def speech_to_text(file : UploadFile = File(...)):
|