Spaces:
Runtime error
Runtime error
Commit
·
bf223ba
1
Parent(s):
7ab5ed2
Update app.py
Browse files
app.py
CHANGED
@@ -36,14 +36,15 @@ def transcribe(audio,):
|
|
36 |
|
37 |
print("--------------------------")
|
38 |
print(f"Execution time: {end_time - start_time} seconds")
|
39 |
-
return transcription
|
40 |
|
41 |
|
42 |
|
43 |
demo = gr.Interface(
|
44 |
transcribe,
|
45 |
-
|
46 |
-
gr.
|
|
|
47 |
)
|
48 |
|
49 |
demo.launch()
|
|
|
36 |
|
37 |
print("--------------------------")
|
38 |
print(f"Execution time: {end_time - start_time} seconds")
|
39 |
+
return transcription, (end_time - start_time)
|
40 |
|
41 |
|
42 |
|
43 |
demo = gr.Interface(
|
44 |
transcribe,
|
45 |
+
inputs = "microphone",
|
46 |
+
# gr.Audio(sources=["microphone"]),
|
47 |
+
outputs = [gr.Textbox(label="CLI_Transcription"),gr.Textbox(label="Time taken for Transcription")]
|
48 |
)
|
49 |
|
50 |
demo.launch()
|