Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def transcribe(file_name):
|
|
37 |
# Reads the response
|
38 |
for result in response.results:
|
39 |
print("Confidence: {}".format(result.alternatives[0].confidence))
|
40 |
-
confidence.append(result.alternatives[0].confidence)
|
41 |
print("Transcript: {}".format(result.alternatives[0].transcript))
|
42 |
transcript.append(result.alternatives[0].transcript)
|
43 |
|
|
|
37 |
# Reads the response
|
38 |
for result in response.results:
|
39 |
print("Confidence: {}".format(result.alternatives[0].confidence))
|
40 |
+
confidence.append(str(result.alternatives[0].confidence))
|
41 |
print("Transcript: {}".format(result.alternatives[0].transcript))
|
42 |
transcript.append(result.alternatives[0].transcript)
|
43 |
|