Spaces:
Sleeping
Sleeping
Commit
·
e48f372
1
Parent(s):
89943a0
Revert portg
Browse files
app.py
CHANGED
@@ -817,7 +817,7 @@ async def get_conversation_api():
|
|
817 |
# API endpoint to control recording
|
818 |
@router.post("/api/control/{action}")
|
819 |
async def control_recording(action: str):
|
820 |
-
"""API endpoint to control recording (start/stop/clear)"""
|
821 |
if action == "start":
|
822 |
result = diarization_system.start_recording()
|
823 |
elif action == "stop":
|
@@ -927,7 +927,7 @@ if __name__ == "__main__":
|
|
927 |
API Endpoints:
|
928 |
- GET /health - Health check
|
929 |
- GET /api/conversation - Get current conversation
|
930 |
-
- POST /api/control/{action} - Control recording (start/stop/clear/initialize)
|
931 |
- WS /stream - FastRTC audio stream endpoint
|
932 |
|
933 |
""")
|
|
|
817 |
# API endpoint to control recording
|
818 |
@router.post("/api/control/{action}")
|
819 |
async def control_recording(action: str):
|
820 |
+
"""API endpoint to control recording (start/stop/clear/initialize)"""
|
821 |
if action == "start":
|
822 |
result = diarization_system.start_recording()
|
823 |
elif action == "stop":
|
|
|
927 |
API Endpoints:
|
928 |
- GET /health - Health check
|
929 |
- GET /api/conversation - Get current conversation
|
930 |
+
- POST /api/control/{{action}} - Control recording (start/stop/clear/initialize)
|
931 |
- WS /stream - FastRTC audio stream endpoint
|
932 |
|
933 |
""")
|