Spaces:
Sleeping
Sleeping
m00913563 commited on
Commit ·
0fed822
1
Parent(s): a9df982
change
Browse files- app.py +1 -1
- extractor.py +1 -2
app.py
CHANGED
|
@@ -26,4 +26,4 @@ async def extract(link: InsertedLink):
|
|
| 26 |
raise HTTPException(status_code=response.status_code, detail="File server error")
|
| 27 |
|
| 28 |
dictresult = extractor.speech2text(mp3)
|
| 29 |
-
return dictresult
|
|
|
|
| 26 |
raise HTTPException(status_code=response.status_code, detail="File server error")
|
| 27 |
|
| 28 |
dictresult = extractor.speech2text(mp3)
|
| 29 |
+
return ExtractedText(**dictresult)
|
extractor.py
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
def speech2ytext(mp3):
|
| 3 |
return {"text": "text"}
|
|
|
|
| 1 |
+
def ExtractedText(mp3):
|
|
|
|
| 2 |
return {"text": "text"}
|