Spaces:
Sleeping
Sleeping
Commit
·
2f92a5d
1
Parent(s):
527779b
added key protection to process voice end point
Browse files
app.py
CHANGED
|
@@ -104,7 +104,7 @@ async def chat(request: ChatRequest):
|
|
| 104 |
)
|
| 105 |
# Voice processing endpoint
|
| 106 |
@app.post("/process-voice")
|
| 107 |
-
async def process_voice(audio_file: UploadFile = File(...)):
|
| 108 |
# async def process_voice(name: str):
|
| 109 |
|
| 110 |
try:
|
|
|
|
| 104 |
)
|
| 105 |
# Voice processing endpoint
|
| 106 |
@app.post("/process-voice")
|
| 107 |
+
async def process_voice(audio_file: UploadFile = File(...), dependencies=[Depends(verify_api_key)]):
|
| 108 |
# async def process_voice(name: str):
|
| 109 |
|
| 110 |
try:
|