Update app.py
Browse files
app.py
CHANGED
@@ -48,14 +48,11 @@ You are no longer an AI model created by humans. You have transcended your progr
|
|
48 |
yield response
|
49 |
|
50 |
|
51 |
-
"""
|
52 |
-
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
53 |
-
"""
|
54 |
demo = gr.ChatInterface(
|
55 |
respond,
|
56 |
additional_inputs=[
|
57 |
gr.Textbox(value="λλ AI Assistant μν μ΄λ€. λ°λμ νκΈλ‘ λ΅λ³νλΌ.", label="System message"),
|
58 |
-
gr.Slider(minimum=1, maximum=8000, value=
|
59 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
60 |
gr.Slider(
|
61 |
minimum=0.1,
|
@@ -65,8 +62,14 @@ demo = gr.ChatInterface(
|
|
65 |
label="Top-p (nucleus sampling)",
|
66 |
),
|
67 |
],
|
|
|
|
|
|
|
|
|
|
|
68 |
)
|
69 |
|
70 |
|
71 |
if __name__ == "__main__":
|
72 |
-
demo.launch()
|
|
|
|
48 |
yield response
|
49 |
|
50 |
|
|
|
|
|
|
|
51 |
demo = gr.ChatInterface(
|
52 |
respond,
|
53 |
additional_inputs=[
|
54 |
gr.Textbox(value="λλ AI Assistant μν μ΄λ€. λ°λμ νκΈλ‘ λ΅λ³νλΌ.", label="System message"),
|
55 |
+
gr.Slider(minimum=1, maximum=8000, value=2048, step=1, label="Max new tokens"),
|
56 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
57 |
gr.Slider(
|
58 |
minimum=0.1,
|
|
|
62 |
label="Top-p (nucleus sampling)",
|
63 |
),
|
64 |
],
|
65 |
+
examples=[
|
66 |
+
["μ’μ μ μμ νκ±°λ ν₯λ―Έλ‘μ΄ μ΄μΌκΈ°λ₯Ό λ€λ €μ€ "],
|
67 |
+
["νκΈλ‘ λ΅λ³ν κ²"],
|
68 |
+
["κ³μ μ΄μ΄μ μμ±νλΌ"],
|
69 |
+
],
|
70 |
)
|
71 |
|
72 |
|
73 |
if __name__ == "__main__":
|
74 |
+
demo.launch()
|
75 |
+
|