Spaces:
Sleeping
Sleeping
AshDavid12
commited on
Commit
·
860f8a3
1
Parent(s):
5f98e1b
hf home change
Browse files
infer.py
CHANGED
@@ -86,6 +86,9 @@ async def transcribe_audio(file: UploadFile = File(...)):
|
|
86 |
|
87 |
return {"transcription": transcription}
|
88 |
|
|
|
|
|
|
|
89 |
|
90 |
if __name__ == "__main__":
|
91 |
# Print when starting the FastAPI server
|
|
|
86 |
|
87 |
return {"transcription": transcription}
|
88 |
|
89 |
+
@app.get("/")
|
90 |
+
def read_root():
|
91 |
+
return {"message": "Welcome to the Whisper transcription API"}
|
92 |
|
93 |
if __name__ == "__main__":
|
94 |
# Print when starting the FastAPI server
|