haepada commited on
Commit
a6494c4
·
verified ·
1 Parent(s): d7b7fbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -403,8 +403,7 @@ def create_interface():
403
  label="축원 문장 녹음하기",
404
  sources=["microphone"],
405
  type="numpy",
406
- streaming=False,
407
- preload=True # 추가
408
  )
409
  set_baseline_btn = gr.Button("기준점 설정 완료", variant="primary")
410
  baseline_status = gr.Markdown("")
@@ -414,7 +413,7 @@ def create_interface():
414
  play_music_btn = gr.Button("온천천의 소리 듣기", variant="secondary")
415
  with gr.Row():
416
  audio = gr.Audio(
417
- value="assets/main_music.mp3", # 음악 파일 경로 수정
418
  type="filepath",
419
  label="온천천의 소리",
420
  interactive=False,
@@ -444,8 +443,7 @@ def create_interface():
444
  label="소원을 나누고 싶은 마음을 말해주세요",
445
  sources=["microphone"],
446
  type="numpy",
447
- streaming=False,
448
- preload=True # 추가
449
  )
450
  with gr.Row():
451
  clear_btn = gr.Button("녹음 지우기", variant="secondary")
 
403
  label="축원 문장 녹음하기",
404
  sources=["microphone"],
405
  type="numpy",
406
+ streaming=False
 
407
  )
408
  set_baseline_btn = gr.Button("기준점 설정 완료", variant="primary")
409
  baseline_status = gr.Markdown("")
 
413
  play_music_btn = gr.Button("온천천의 소리 듣기", variant="secondary")
414
  with gr.Row():
415
  audio = gr.Audio(
416
+ value="assets/main_music.mp3",
417
  type="filepath",
418
  label="온천천의 소리",
419
  interactive=False,
 
443
  label="소원을 나누고 싶은 마음을 말해주세요",
444
  sources=["microphone"],
445
  type="numpy",
446
+ streaming=False
 
447
  )
448
  with gr.Row():
449
  clear_btn = gr.Button("녹음 지우기", variant="secondary")