Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,3 +80,12 @@ async def transcribe_audio(request: TranscriptionRequest):
|
|
80 |
|
81 |
except Exception as e:
|
82 |
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
except Exception as e:
|
82 |
raise HTTPException(status_code=500, detail=str(e))
|
83 |
+
|
84 |
+
@app.get("/")
|
85 |
+
async def root():
|
86 |
+
return {"message": "Welcome to the Stem Extractor API. Use the /transcribe endpoint."}
|
87 |
+
|
88 |
+
|
89 |
+
if __name__ == "__main__":
|
90 |
+
import uvicorn
|
91 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|