rrevo commited on
Commit
bc8d394
·
1 Parent(s): 376e42a
Files changed (1) hide show
  1. client/src/main.py +3 -1
client/src/main.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import os
2
  import httpx
3
  from queue import Queue
@@ -56,9 +57,10 @@ def main():
56
  serialized = pickle.dumps(current_audio_chunk.audio_array)
57
  print('end serialize')
58
 
 
59
  print('start req')
60
  response = httpx.post(TRANSCRIBING_SERVER, data=serialized)
61
- print('req done', response.text, response.status_code)
62
 
63
  # text = transcribe_model.transcribe(current_audio_chunk.audio_array)
64
  # sentence = Sentence(
 
1
+ import time
2
  import os
3
  import httpx
4
  from queue import Queue
 
57
  serialized = pickle.dumps(current_audio_chunk.audio_array)
58
  print('end serialize')
59
 
60
+ start = time.time()
61
  print('start req')
62
  response = httpx.post(TRANSCRIBING_SERVER, data=serialized)
63
+ print('req done', response.text, response.status_code, time.time() - start)
64
 
65
  # text = transcribe_model.transcribe(current_audio_chunk.audio_array)
66
  # sentence = Sentence(