Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -15,7 +15,7 @@ def transcribe_audio(audio):
|
|
| 15 |
return result["text"], base64.b64encode(result["text"].encode()).decode()
|
| 16 |
|
| 17 |
# Gradio 인터페이스
|
| 18 |
-
|
| 19 |
fn=transcribe_audio,
|
| 20 |
inputs=gr.Audio(label = '오디오', sources="microphone", type='filepath'),
|
| 21 |
outputs=[gr.Textbox(label='결과'), gr.Textbox(label='암호화된 결과')],
|
|
@@ -24,7 +24,5 @@ demo1 = gr.Interface(
|
|
| 24 |
submit_btn='실행',
|
| 25 |
clear_btn='지우기')
|
| 26 |
|
| 27 |
-
demo = gr.TabbedInterface((demo1), ('Speech-To-Text'))
|
| 28 |
-
|
| 29 |
# 앱 실행
|
| 30 |
demo.launch()
|
|
|
|
| 15 |
return result["text"], base64.b64encode(result["text"].encode()).decode()
|
| 16 |
|
| 17 |
# Gradio 인터페이스
|
| 18 |
+
demo = gr.Interface(
|
| 19 |
fn=transcribe_audio,
|
| 20 |
inputs=gr.Audio(label = '오디오', sources="microphone", type='filepath'),
|
| 21 |
outputs=[gr.Textbox(label='결과'), gr.Textbox(label='암호화된 결과')],
|
|
|
|
| 24 |
submit_btn='실행',
|
| 25 |
clear_btn='지우기')
|
| 26 |
|
|
|
|
|
|
|
| 27 |
# 앱 실행
|
| 28 |
demo.launch()
|