Spaces:
Runtime error
Runtime error
aar2dee2
commited on
Commit
·
98164ac
1
Parent(s):
7dde39d
log type of input
Browse files
app.py
CHANGED
@@ -67,6 +67,7 @@ logger.setLevel(logging.DEBUG)
|
|
67 |
|
68 |
|
69 |
def main(input_audio):
|
|
|
70 |
|
71 |
transcriber = WhisperTranscriber(api_key=getenv("OPENAI_API_KEY"))
|
72 |
|
@@ -107,8 +108,8 @@ description = "Darth Vader resurrected with all the knowledge of humanity"
|
|
107 |
|
108 |
mic_translate = gr.Interface(
|
109 |
fn=main,
|
110 |
-
inputs=gr.Audio(source="microphone",
|
111 |
-
outputs=gr.Audio(label="Generated Speech",
|
112 |
title=title,
|
113 |
description=description,
|
114 |
)
|
|
|
67 |
|
68 |
|
69 |
def main(input_audio):
|
70 |
+
logger.info(f"Type of input_audio: {type(input_audio)}")
|
71 |
|
72 |
transcriber = WhisperTranscriber(api_key=getenv("OPENAI_API_KEY"))
|
73 |
|
|
|
108 |
|
109 |
mic_translate = gr.Interface(
|
110 |
fn=main,
|
111 |
+
inputs=gr.Audio(source="microphone", format="wav"),
|
112 |
+
outputs=gr.Audio(label="Generated Speech", format="wav"),
|
113 |
title=title,
|
114 |
description=description,
|
115 |
)
|