Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def transcribe(mic_input, upl_input, model_type):
|
|
53 |
text = p1(audio)["text"]
|
54 |
end_time = time.time()
|
55 |
# state = text + " "
|
56 |
-
time_taken = (end_time - st_time) / 60
|
57 |
return text, time_taken
|
58 |
|
59 |
|
@@ -116,13 +116,13 @@ if __name__ == "__main__":
|
|
116 |
with gr.Column():
|
117 |
lbl_output = gr.Label(label="Transcription")
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
|
127 |
|
128 |
with gr.Row():
|
|
|
53 |
text = p1(audio)["text"]
|
54 |
end_time = time.time()
|
55 |
# state = text + " "
|
56 |
+
time_taken = round((end_time - st_time) / 60 , 4)
|
57 |
return text, time_taken
|
58 |
|
59 |
|
|
|
116 |
with gr.Column():
|
117 |
lbl_output = gr.Label(label="Transcription")
|
118 |
|
119 |
+
with gr.Row():
|
120 |
+
time_output = gr.Label(label="Time Taken (in sec)")
|
121 |
+
# with gr.Group():
|
122 |
+
# gr.Markdown("<center>Prediction per time slot</center>")
|
123 |
+
# plt_output = gr.Plot(
|
124 |
+
# label="Prediction per time slot", show_label=False
|
125 |
+
# )
|
126 |
|
127 |
|
128 |
with gr.Row():
|