Update app.py
Browse files
app.py
CHANGED
@@ -326,13 +326,13 @@ def create_interface():
|
|
326 |
label="축원 문장 녹음하기",
|
327 |
sources=["microphone"]
|
328 |
)
|
329 |
-
|
330 |
-
|
331 |
|
332 |
with gr.Tab("청신"):
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
audio = gr.Audio(
|
337 |
value=None,
|
338 |
type="filepath",
|
@@ -352,8 +352,8 @@ def create_interface():
|
|
352 |
)
|
353 |
|
354 |
with gr.Tab("기원"):
|
355 |
-
|
356 |
-
|
357 |
with gr.Column():
|
358 |
voice_input = gr.Audio(
|
359 |
label="소원을 나누고 싶은 마음을 말해주세요",
|
@@ -368,21 +368,21 @@ def create_interface():
|
|
368 |
text_emotion = gr.Textbox(label="텍스트 감정 분석")
|
369 |
|
370 |
with gr.Tab("송신"):
|
371 |
-
|
372 |
-
|
373 |
label="생성된 프롬프트",
|
374 |
interactive=False,
|
375 |
lines=3
|
376 |
)
|
377 |
-
|
378 |
-
|
379 |
|
380 |
-
|
381 |
-
|
382 |
label="마지막 감상",
|
383 |
placeholder="한 줄로 남겨주세요..."
|
384 |
)
|
385 |
-
|
386 |
|
387 |
def delayed_image_clear():
|
388 |
time.sleep(IMAGE_DISPLAY_TIME)
|
|
|
326 |
label="축원 문장 녹음하기",
|
327 |
sources=["microphone"]
|
328 |
)
|
329 |
+
set_baseline_btn = gr.Button("기준점 설정 완료")
|
330 |
+
baseline_status = gr.Markdown("")
|
331 |
|
332 |
with gr.Tab("청신"):
|
333 |
+
gr.Markdown("## 청신 - 소리로 정화하기")
|
334 |
+
play_music_btn = gr.Button("온천천의 소리 듣기")
|
335 |
+
with gr.Row():
|
336 |
audio = gr.Audio(
|
337 |
value=None,
|
338 |
type="filepath",
|
|
|
352 |
)
|
353 |
|
354 |
with gr.Tab("기원"):
|
355 |
+
gr.Markdown("## 기원 - 소원을 전해보세요")
|
356 |
+
with gr.Row():
|
357 |
with gr.Column():
|
358 |
voice_input = gr.Audio(
|
359 |
label="소원을 나누고 싶은 마음을 말해주세요",
|
|
|
368 |
text_emotion = gr.Textbox(label="텍스트 감정 분석")
|
369 |
|
370 |
with gr.Tab("송신"):
|
371 |
+
gr.Markdown("## 송신 - 마음의 그림을 남기고, 보내기")
|
372 |
+
final_prompt = gr.Textbox(
|
373 |
label="생성된 프롬프트",
|
374 |
interactive=False,
|
375 |
lines=3
|
376 |
)
|
377 |
+
generate_btn = gr.Button("마음의 그림 그리기")
|
378 |
+
result_image = gr.Image(label="생성된 이미지")
|
379 |
|
380 |
+
gr.Markdown("## 마지막 감상을 남겨주세요")
|
381 |
+
final_reflection = gr.Textbox(
|
382 |
label="마지막 감상",
|
383 |
placeholder="한 줄로 남겨주세요..."
|
384 |
)
|
385 |
+
save_final_btn = gr.Button("감상 남기기")
|
386 |
|
387 |
def delayed_image_clear():
|
388 |
time.sleep(IMAGE_DISPLAY_TIME)
|