Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,10 +46,16 @@ models = {
|
|
46 |
|
47 |
with gr.Blocks() as demo:
|
48 |
chatbot = gr.Chatbot()
|
49 |
-
|
50 |
-
|
|
|
|
|
51 |
|
52 |
-
with gr.
|
|
|
|
|
|
|
|
|
53 |
system_message = gr.Textbox(
|
54 |
value="너는 나의 최고의 비서이다.\n내가 요구하는것들을 최대한 자세하고 정확하게 답변하라.\n반드시 한글로 답변할것.",
|
55 |
label="시스템 메시지",
|
@@ -60,10 +66,6 @@ with gr.Blocks() as demo:
|
|
60 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.90, step=0.05, label="Top-p (핵 샘플링)")
|
61 |
model = gr.Radio(list(models.keys()), value=list(models.keys())[0], label="언어 모델 선택", info="사용할 언어 모델을 선택하세요")
|
62 |
|
63 |
-
send = gr.Button("Send")
|
64 |
-
regenerate = gr.Button("🔄 Regenerate")
|
65 |
-
clear = gr.Button("🗑️ Clear")
|
66 |
-
|
67 |
send.click(respond, inputs=[msg, chatbot, system_message, max_tokens, temperature, top_p, model], outputs=chatbot)
|
68 |
msg.submit(respond, inputs=[msg, chatbot, system_message, max_tokens, temperature, top_p, model], outputs=chatbot)
|
69 |
regenerate.click(respond, inputs=[msg, chatbot, system_message, max_tokens, temperature, top_p, model], outputs=chatbot)
|
|
|
46 |
|
47 |
with gr.Blocks() as demo:
|
48 |
chatbot = gr.Chatbot()
|
49 |
+
|
50 |
+
with gr.Row():
|
51 |
+
msg = gr.Textbox(scale=4, label="메시지 입력")
|
52 |
+
send = gr.Button("전송", scale=1)
|
53 |
|
54 |
+
with gr.Row():
|
55 |
+
regenerate = gr.Button("🔄 재생성")
|
56 |
+
clear = gr.Button("🗑️ 대화 내역 지우기")
|
57 |
+
|
58 |
+
with gr.Accordion("추가 설정", open=True):
|
59 |
system_message = gr.Textbox(
|
60 |
value="너는 나의 최고의 비서이다.\n내가 요구하는것들을 최대한 자세하고 정확하게 답변하라.\n반드시 한글로 답변할것.",
|
61 |
label="시스템 메시지",
|
|
|
66 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.90, step=0.05, label="Top-p (핵 샘플링)")
|
67 |
model = gr.Radio(list(models.keys()), value=list(models.keys())[0], label="언어 모델 선택", info="사용할 언어 모델을 선택하세요")
|
68 |
|
|
|
|
|
|
|
|
|
69 |
send.click(respond, inputs=[msg, chatbot, system_message, max_tokens, temperature, top_p, model], outputs=chatbot)
|
70 |
msg.submit(respond, inputs=[msg, chatbot, system_message, max_tokens, temperature, top_p, model], outputs=chatbot)
|
71 |
regenerate.click(respond, inputs=[msg, chatbot, system_message, max_tokens, temperature, top_p, model], outputs=chatbot)
|