uodated languge
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def store_correction(original_transcription, corrected_transcription, audio_file
|
|
63 |
|
64 |
# Generate a unique identifier for the audio file
|
65 |
unique_id = str(uuid.uuid4())
|
66 |
-
destination_path = f"audio/
|
67 |
|
68 |
# Create a blob and upload the file
|
69 |
blob = bucket.blob(destination_path)
|
@@ -76,7 +76,7 @@ def store_correction(original_transcription, corrected_transcription, audio_file
|
|
76 |
'transcription_info': {
|
77 |
'original_text': original_transcription,
|
78 |
'corrected_text': corrected_transcription,
|
79 |
-
'language':
|
80 |
},
|
81 |
'audio_data': {
|
82 |
'audio_metadata': audio_metadata,
|
|
|
63 |
|
64 |
# Generate a unique identifier for the audio file
|
65 |
unique_id = str(uuid.uuid4())
|
66 |
+
destination_path = f"audio/pai/{unique_id}.wav"
|
67 |
|
68 |
# Create a blob and upload the file
|
69 |
blob = bucket.blob(destination_path)
|
|
|
76 |
'transcription_info': {
|
77 |
'original_text': original_transcription,
|
78 |
'corrected_text': corrected_transcription,
|
79 |
+
'language': 'pai',
|
80 |
},
|
81 |
'audio_data': {
|
82 |
'audio_metadata': audio_metadata,
|