Update app.py
Browse files
app.py
CHANGED
@@ -864,21 +864,6 @@ def create_interface():
|
|
864 |
gr.update(visible=False)
|
865 |
)
|
866 |
|
867 |
-
def handle_blessing_complete(audio, state):
|
868 |
-
if audio is None:
|
869 |
-
return state, "음성을 먼저 녹음해주세요.", gr.update(visible=True), gr.update(visible=False)
|
870 |
-
|
871 |
-
try:
|
872 |
-
# ... (기존 음성 처리 코드)
|
873 |
-
return (
|
874 |
-
state,
|
875 |
-
"축원이 완료되었습니다.",
|
876 |
-
gr.update(visible=False),
|
877 |
-
gr.update(visible=True)
|
878 |
-
)
|
879 |
-
except Exception as e:
|
880 |
-
return state, f"오류가 발생했습니다: {str(e)}", gr.update(visible=True), gr.update(visible=False)
|
881 |
-
|
882 |
def handle_enter():
|
883 |
return gr.update(selected=1) # 청신 탭으로 이동
|
884 |
|
|
|
864 |
gr.update(visible=False)
|
865 |
)
|
866 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
867 |
def handle_enter():
|
868 |
return gr.update(selected=1) # 청신 탭으로 이동
|
869 |
|