jilijeanlouis commited on
Commit
a463d9d
1 Parent(s): 98a3806

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -72,13 +72,13 @@ def transcribe(
72
  # and other debugging detailed element you might be
73
  # interested in
74
 
75
- output = response.json()["prediction_raw"]
76
 
77
- output["metadata"]["client_total_execution_time"] = end_transfer - start_transfer
78
- output["metadata"]["data_transfer_time"] = output["metadata"]["client_total_execution_time"] -output["metadata"]["total_transcription_time"]
79
- output["metadata"]["api_server_transcription_time"] = output["metadata"]["total_transcription_time"]
80
 
81
- del output["metadata"]["original_mediainfo"]
 
 
82
 
83
  return output
84
 
 
72
  # and other debugging detailed element you might be
73
  # interested in
74
 
75
+ segments = response.json()["prediction"]
76
 
77
+ output = ""
 
 
78
 
79
+ for segment in segments:
80
+ output += " " + transcription
81
+
82
 
83
  return output
84