Update main.py
Browse files
main.py
CHANGED
|
@@ -105,12 +105,12 @@ async def handle_webhook(request: Request, token: str = Depends(verify_token)):
|
|
| 105 |
if run_time.stage != 'RUNNING':
|
| 106 |
await restart_and_check_space(repo_id)
|
| 107 |
else:
|
| 108 |
-
|
| 109 |
async with httpx.AsyncClient() as client:
|
| 110 |
data = {
|
| 111 |
'video_url': str(responseRetrieve.get('video_url')),
|
| 112 |
'final_url': "https://sabbah13-video-call-recording-and-transcription-9729a08.hf.space/transcript/",
|
| 113 |
-
'max_speakers':
|
| 114 |
'min_speakers': 1,
|
| 115 |
'bot_id': bot_id,
|
| 116 |
}
|
|
|
|
| 105 |
if run_time.stage != 'RUNNING':
|
| 106 |
await restart_and_check_space(repo_id)
|
| 107 |
else:
|
| 108 |
+
logging.info('Transcribation space is running, sending file')
|
| 109 |
async with httpx.AsyncClient() as client:
|
| 110 |
data = {
|
| 111 |
'video_url': str(responseRetrieve.get('video_url')),
|
| 112 |
'final_url': "https://sabbah13-video-call-recording-and-transcription-9729a08.hf.space/transcript/",
|
| 113 |
+
'max_speakers': 10,
|
| 114 |
'min_speakers': 1,
|
| 115 |
'bot_id': bot_id,
|
| 116 |
}
|