Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -136,8 +136,16 @@ with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin
|
|
136 |
#repetition_penalty = gr.Slider( minimum=0.1, maximum=3.0, value=1.03, step=0.01, interactive=True, label="Repetition Penalty", )
|
137 |
chat_counter = gr.Number(value=0, visible=False, precision=0)
|
138 |
|
139 |
-
examples = gr.Examples(examples=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
|
|
|
141 |
inputs.submit( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
|
142 |
b1.click( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
|
143 |
b1.click(reset_textbox, [], [inputs])
|
|
|
136 |
#repetition_penalty = gr.Slider( minimum=0.1, maximum=3.0, value=1.03, step=0.01, interactive=True, label="Repetition Penalty", )
|
137 |
chat_counter = gr.Number(value=0, visible=False, precision=0)
|
138 |
|
139 |
+
examples = gr.Examples(examples=[
|
140 |
+
["์ํ:์๋ก ์ถ์๋ 'ํ ๋ฆฌ' ๋ฆฝ๋ฐค์ FDA ์น์ธ, ์ต๊ณ ์ ๋ณด์ต๋ ฅ, ๊ตฌ๋งค์ง์ 1์ "],
|
141 |
+
["๋ธ๋๋ฉ: 'ํ ๋ฆฌ'๋ฆฝ๋ฐค์ 20๋ ์ฌ์ฑ์๊ฒ ์ดํํ ๋ธ๋๋ฉ์ด ํ์ํด"],
|
142 |
+
["PR: ์ค๋ ๋ถ๋ชจ๋๊ณผ ์น์ง ์ ๋ฌผ์ ๋ฒ์ฑํฌ ๋ณด๋ฆฌ๊ตด๋น๊ฐ ์ต๊ณ ๋๋๋ค."],
|
143 |
+
["์ ๋ณด: ๋นํ๋ฏผC ๊ณผ๋ค ๋ณต์ฉ์ ๊ฑด๊ฐ์ ์คํ๋ ค ํด๋กญ๋ค."],
|
144 |
+
["๋ด์ค: 'OpenAI'๋ '์ฑGPT'์ ๋ง์ถค GPT '์คํ ์ด'๋ฅผ ์คํํ์๋ค."],
|
145 |
+
["์ธ์ฌ: '์ ํ ๋ฒ์ธ'์ ๊ณ ๊ฐ๊ณผ ์์ง์์ ์ํ ์ง์ทจ์ ์ธ 2024๋
์ ๋
์ธ์ฌ"]
|
146 |
+
], inputs=[inputs], fn=predict, outputs=[chatbot, state, chat_counter])
|
147 |
|
148 |
+
|
149 |
inputs.submit( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
|
150 |
b1.click( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
|
151 |
b1.click(reset_textbox, [], [inputs])
|