seawolf2357 commited on
Commit
8b95e13
ยท
1 Parent(s): 189c85a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,6 +11,7 @@ def generate_audio(text, voice_name):
11
  "์ฐจ์Šน์›": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค.",
12
  "๊น€์ •์€": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค.",
13
  "๋…ธ๋ฌดํ˜„": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค.",
 
14
  "๊ถ์˜ˆ": "์•ˆ๋…•ํ•˜์„ธ์š”, ๋ฏธ๋ฅต์˜ ๊ฐ€๋ฅด์นจ์€, ์˜ด๋งˆ๋‹ˆ ๋ฐ˜๋ฉ”ํ™ˆ์ด๋‹ˆ๋ผ.",
15
  "์œค์„์—ด": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค."
16
  }
@@ -28,6 +29,7 @@ def generate_audio(text, voice_name):
28
  "์ฐจ์Šน์›": "SKwm0HLYsVDCM2ruvw2p",
29
  "๊น€์ •์€": "YPWL3nQPzBN1XaiZF4aj",
30
  "๋…ธ๋ฌดํ˜„": "6JdivX36i1eJ3LqLmvwH",
 
31
  "๊ถ์˜ˆ": "4kFrgJPCTjA6DyPM5Gr5",
32
  "์œค์„์—ด": "Qrf03Q67kRgpFlj9fto3"
33
  }
@@ -68,7 +70,7 @@ with gr.Blocks() as demo:
68
  gr.Markdown("์ง€๊ธˆ ์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•˜์‹œ๋ฉด ๋”์šฑ ๋งŽ์€ ์ •๋ณด์™€ ๋‹ค์–‘ํ•œ ๊ธฐํšŒ๋ฅผ ์–ป์œผ์‹ค ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ปค๋ฎค๋‹ˆํ‹ฐ ์ฐธ์—ฌ ๋งํฌ https://open.kakao.com/o/gE6hK9Vf ")
69
  gr.Markdown("์Œ์„ฑ์„ ๋จผ์ € ์„ ํƒํ•œ ํ›„ ์›ํ•˜์‹œ๋Š” ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”. ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์ง€ ์•Š๊ณ  ์ƒ์„ฑ์„ ๋ˆ„๋ฅด๋ฉด ์˜ˆ์‹œ ๋Œ€์‚ฌ๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.")
70
  gr.Markdown("์ƒ์„ฑ๋œ ์˜ค๋””์˜ค๋ฅผ ๋‹ค์šด๋กœ๋“œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์šด๋กœ๋“œ ๋ฐ›์œผ์‹  ํ›„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ ํŒŒ์ผ์˜ ํ™•์žฅ์ž๋ฅผ mp3๋กœ ๋ณ€๊ฒฝํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ")
71
- voice_choice = gr.Dropdown(choices=["๋‚จ์„ฑAI", "์—ฌ์„ฑAI", "ํŠธ๋Ÿผํ”„", "์ฐจ์Šน์›", "๊น€์ •์€", "๋…ธ๋ฌดํ˜„", "๊ถ์˜ˆ", "์œค์„์—ด"], label="์Œ์„ฑ ์„ ํƒ")
72
  text_input = gr.Textbox(label="์Œ์„ฑ์œผ๋กœ ์ƒ์„ฑํ•  ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”.(100๊ธ€์ž ์ด๋‚ด ์ œํ•œ ์„ค์ •๋˜์–ด, ์ดˆ๊ณผ์‹œ ์Œ์„ฑ ์ƒ์„ฑ์ด ์ œํ•œ๋ฉ๋‹ˆ๋‹ค.)")
73
  submit_button = gr.Button("์ƒ์„ฑ")
74
  audio_output = gr.Audio(label="์ƒ์„ฑ๋œ ์˜ค๋””์˜ค")
 
11
  "์ฐจ์Šน์›": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค.",
12
  "๊น€์ •์€": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค.",
13
  "๋…ธ๋ฌดํ˜„": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค.",
14
+ "๊ณฝ์ฒ ์šฉ": "๋งˆํฌ ๋Œ€๊ต๋Š” ๋ฌด๋„ˆ์กŒ๋ƒ~? ๋‚ด ์ˆœ์ •์„ ๋ฌป๊ณ  ๋”๋ธ”๋กœ ๊ฐ€~!",
15
  "๊ถ์˜ˆ": "์•ˆ๋…•ํ•˜์„ธ์š”, ๋ฏธ๋ฅต์˜ ๊ฐ€๋ฅด์นจ์€, ์˜ด๋งˆ๋‹ˆ ๋ฐ˜๋ฉ”ํ™ˆ์ด๋‹ˆ๋ผ.",
16
  "์œค์„์—ด": "์•ˆ๋…•ํ•˜์„ธ์š”, ์ƒˆํ•ด ๋ณต ๋งŽ์ด ๋ฐ›์œผ์‹œ๊ธธ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค."
17
  }
 
29
  "์ฐจ์Šน์›": "SKwm0HLYsVDCM2ruvw2p",
30
  "๊น€์ •์€": "YPWL3nQPzBN1XaiZF4aj",
31
  "๋…ธ๋ฌดํ˜„": "6JdivX36i1eJ3LqLmvwH",
32
+ "๊ณฝ์ฒ ": "xareIzgmUtHZat32qZIN",
33
  "๊ถ์˜ˆ": "4kFrgJPCTjA6DyPM5Gr5",
34
  "์œค์„์—ด": "Qrf03Q67kRgpFlj9fto3"
35
  }
 
70
  gr.Markdown("์ง€๊ธˆ ์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•˜์‹œ๋ฉด ๋”์šฑ ๋งŽ์€ ์ •๋ณด์™€ ๋‹ค์–‘ํ•œ ๊ธฐํšŒ๋ฅผ ์–ป์œผ์‹ค ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ปค๋ฎค๋‹ˆํ‹ฐ ์ฐธ์—ฌ ๋งํฌ https://open.kakao.com/o/gE6hK9Vf ")
71
  gr.Markdown("์Œ์„ฑ์„ ๋จผ์ € ์„ ํƒํ•œ ํ›„ ์›ํ•˜์‹œ๋Š” ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”. ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์ง€ ์•Š๊ณ  ์ƒ์„ฑ์„ ๋ˆ„๋ฅด๋ฉด ์˜ˆ์‹œ ๋Œ€์‚ฌ๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.")
72
  gr.Markdown("์ƒ์„ฑ๋œ ์˜ค๋””์˜ค๋ฅผ ๋‹ค์šด๋กœ๋“œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์šด๋กœ๋“œ ๋ฐ›์œผ์‹  ํ›„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ ํŒŒ์ผ์˜ ํ™•์žฅ์ž๋ฅผ mp3๋กœ ๋ณ€๊ฒฝํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ")
73
+ voice_choice = gr.Dropdown(choices=["๋‚จ์„ฑAI", "์—ฌ์„ฑAI", "ํŠธ๋Ÿผํ”„", "์ฐจ์Šน์›", "๊น€์ •์€", "๋…ธ๋ฌดํ˜„", "๊ณฝ์ฒ ์šฉ", "๊ถ์˜ˆ", "์œค์„์—ด"], label="์Œ์„ฑ ์„ ํƒ")
74
  text_input = gr.Textbox(label="์Œ์„ฑ์œผ๋กœ ์ƒ์„ฑํ•  ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”.(100๊ธ€์ž ์ด๋‚ด ์ œํ•œ ์„ค์ •๋˜์–ด, ์ดˆ๊ณผ์‹œ ์Œ์„ฑ ์ƒ์„ฑ์ด ์ œํ•œ๋ฉ๋‹ˆ๋‹ค.)")
75
  submit_button = gr.Button("์ƒ์„ฑ")
76
  audio_output = gr.Audio(label="์ƒ์„ฑ๋œ ์˜ค๋””์˜ค")