Update app.py
Browse files
app.py
CHANGED
@@ -67,18 +67,18 @@ demo = gr.Interface(
|
|
67 |
gr.Textbox(lines=2, placeholder="λ©μμ§λ₯Ό μ
λ ₯νμΈμ..."),
|
68 |
gr.State(value=[]),
|
69 |
gr.Textbox(lines=2, placeholder="μμ€ν
λ©μμ§λ₯Ό μ
λ ₯νμΈμ..."),
|
70 |
-
gr.Slider(minimum=1, maximum=128000, value=
|
71 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
72 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
73 |
],
|
74 |
outputs=[
|
75 |
gr.Textbox(label="μλ΅"),
|
76 |
-
gr.Audio(label="μμ± νμΌ", type="
|
77 |
],
|
78 |
examples=[
|
79 |
["λ°λμ νκΈλ‘ λ΅λ³νλΌ"],
|
80 |
["μμ΄μ¬λλμ μλλ μ΄λμ§?"],
|
81 |
-
["
|
82 |
["κ³μ μ΄μ΄μ λ΅λ³νλΌ"],
|
83 |
],
|
84 |
cache_examples=False # μΊμ± λΉνμ±ν μ€μ
|
|
|
67 |
gr.Textbox(lines=2, placeholder="λ©μμ§λ₯Ό μ
λ ₯νμΈμ..."),
|
68 |
gr.State(value=[]),
|
69 |
gr.Textbox(lines=2, placeholder="μμ€ν
λ©μμ§λ₯Ό μ
λ ₯νμΈμ..."),
|
70 |
+
gr.Slider(minimum=1, maximum=128000, value=100, step=1, label="Max new tokens"),
|
71 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
72 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
73 |
],
|
74 |
outputs=[
|
75 |
gr.Textbox(label="μλ΅"),
|
76 |
+
gr.Audio(label="μμ± νμΌ", type="filepath")
|
77 |
],
|
78 |
examples=[
|
79 |
["λ°λμ νκΈλ‘ λ΅λ³νλΌ"],
|
80 |
["μμ΄μ¬λλμ μλλ μ΄λμ§?"],
|
81 |
+
["λλ λκ° λ§λ€μμ§?"],
|
82 |
["κ³μ μ΄μ΄μ λ΅λ³νλΌ"],
|
83 |
],
|
84 |
cache_examples=False # μΊμ± λΉνμ±ν μ€μ
|