Drbrain0620 commited on
Commit
9f673f0
ยท
verified ยท
1 Parent(s): 7570ba2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -17,7 +17,7 @@ def transcribe_audio(audio):
17
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค
18
  demo = gr.Interface(
19
  fn=transcribe_audio,
20
- inputs=gr.Audio(label = '์˜ค๋””์˜ค', sources="microphone", type='numpy'),
21
  outputs=[gr.Textbox(label='๊ฒฐ๊ณผ'), gr.Textbox(label='์•”ํ˜ธํ™”๋œ ๊ฒฐ๊ณผ')],
22
  title='์ด์šฐ์ง„์˜ Speech to Text',
23
  description='AI 60%, ๋‚˜ 40% (AI ์ฝ”๋“œ 40๋ถ„๋™์•ˆ ๊ณ ์น˜๋‹ค๊ฐ€ new chat์œผ๋กœ ๋‹ค์‹œ ์งœ๋‹ˆ๊นŒ ๋ฐ”๋กœ๋จ) (Interface๋Š” ๋‚ด๊ฐ€๋งŒ๋“ฌ) (์ œ์ž‘์‹œ๊ฐ„ 1์‹œ๊ฐ„)')
 
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='์•”ํ˜ธํ™”๋œ ๊ฒฐ๊ณผ')],
22
  title='์ด์šฐ์ง„์˜ Speech to Text',
23
  description='AI 60%, ๋‚˜ 40% (AI ์ฝ”๋“œ 40๋ถ„๋™์•ˆ ๊ณ ์น˜๋‹ค๊ฐ€ new chat์œผ๋กœ ๋‹ค์‹œ ์งœ๋‹ˆ๊นŒ ๋ฐ”๋กœ๋จ) (Interface๋Š” ๋‚ด๊ฐ€๋งŒ๋“ฌ) (์ œ์ž‘์‹œ๊ฐ„ 1์‹œ๊ฐ„)')