Spaces:
Runtime error
Runtime error
jilijeanlouis
commited on
Commit
•
a463d9d
1
Parent(s):
98a3806
Update app.py
Browse files
app.py
CHANGED
@@ -72,13 +72,13 @@ def transcribe(
|
|
72 |
# and other debugging detailed element you might be
|
73 |
# interested in
|
74 |
|
75 |
-
|
76 |
|
77 |
-
output
|
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 |
-
|
|
|
|
|
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 |
|