Update main.py
Browse files
main.py
CHANGED
|
@@ -42,6 +42,7 @@ note_taker_url_transcript = os.getenv('NOTE_TAKER_URL_TRANSCRIPT')
|
|
| 42 |
note_taker_url_transcript_my_video = os.getenv('NOTE_TAKER_URL_TRANSCRIPT_MY_VIDEO')
|
| 43 |
base_promt = os.getenv('BASE_PROMT')
|
| 44 |
django_authorization_token = os.getenv('DJANGO_AUTHORIZATION_TOKEN')
|
|
|
|
| 45 |
|
| 46 |
class MeetingURL(BaseModel):
|
| 47 |
meeting_url: str
|
|
@@ -182,7 +183,7 @@ async def send_webhook_for_transcription(responseRetrieve: dict):
|
|
| 182 |
|
| 183 |
data = {
|
| 184 |
'video_url': responseRetrieve.get('video_url'),
|
| 185 |
-
'final_url': "
|
| 186 |
'max_speakers': 10,
|
| 187 |
'min_speakers': 1,
|
| 188 |
'bot_id': responseRetrieve.get('bot_id'),
|
|
@@ -312,7 +313,7 @@ async def send_video_for_transcription(file_content: bytes, filename: str, conte
|
|
| 312 |
'file': (filename, file_content, content_type)
|
| 313 |
}
|
| 314 |
data = {
|
| 315 |
-
'final_url': "
|
| 316 |
'max_speakers': 10,
|
| 317 |
'min_speakers': 1,
|
| 318 |
"hash_path": hash_path,
|
|
|
|
| 42 |
note_taker_url_transcript_my_video = os.getenv('NOTE_TAKER_URL_TRANSCRIPT_MY_VIDEO')
|
| 43 |
base_promt = os.getenv('BASE_PROMT')
|
| 44 |
django_authorization_token = os.getenv('DJANGO_AUTHORIZATION_TOKEN')
|
| 45 |
+
base_url = os.getenv('BASE_URL')
|
| 46 |
|
| 47 |
class MeetingURL(BaseModel):
|
| 48 |
meeting_url: str
|
|
|
|
| 183 |
|
| 184 |
data = {
|
| 185 |
'video_url': responseRetrieve.get('video_url'),
|
| 186 |
+
'final_url': base_url + "/transcript/",
|
| 187 |
'max_speakers': 10,
|
| 188 |
'min_speakers': 1,
|
| 189 |
'bot_id': responseRetrieve.get('bot_id'),
|
|
|
|
| 313 |
'file': (filename, file_content, content_type)
|
| 314 |
}
|
| 315 |
data = {
|
| 316 |
+
'final_url': base_url + "/transcript/video-file/",
|
| 317 |
'max_speakers': 10,
|
| 318 |
'min_speakers': 1,
|
| 319 |
"hash_path": hash_path,
|