Spaces:
Build error
Build error
- client/src/main.py +3 -2
client/src/main.py
CHANGED
@@ -80,8 +80,9 @@ def main(transcriptions_queue):
|
|
80 |
print('start req')
|
81 |
response = httpx.post(TRANSCRIBING_SERVER, data=serialized)
|
82 |
print('req status', response.status_code)
|
83 |
-
|
84 |
-
|
|
|
85 |
transcriptions_queue.put(transcription)
|
86 |
|
87 |
# text = transcribe_model.transcribe(current_audio_chunk.audio_array)
|
|
|
80 |
print('start req')
|
81 |
response = httpx.post(TRANSCRIBING_SERVER, data=serialized)
|
82 |
print('req status', response.status_code)
|
83 |
+
full_json = response.json()
|
84 |
+
transcription = full_json['transcribe']
|
85 |
+
print('req done', full_json, response.status_code, time.time() - start)
|
86 |
transcriptions_queue.put(transcription)
|
87 |
|
88 |
# text = transcribe_model.transcribe(current_audio_chunk.audio_array)
|