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 |
+
|