snoop2head
commited on
Commit
ยท
070689f
1
Parent(s):
85c2795
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,7 @@ def infer(input_ids, max_length, temperature, top_k, top_p):
|
|
48 |
|
49 |
# prompts
|
50 |
st.title("์ฃผ์ด์ง ๊ฐ์ ์ ๋ง๊ฒ ๋ฌธ์ฅ์ ๋ง๋๋ KoGPT์
๋๋ค ๐ฆ")
|
51 |
-
st.write("์ข์ธก์ ๊ฐ์ ์ํ์ ๋ณํ๋ฅผ
|
52 |
-
st.write("์
๋ ฅํ๊ณ ๋์ CTRL+Enter(CMD+Enter)๋ฅผ ๋๋ฅด์ธ์ ๐ค")
|
53 |
|
54 |
# text and sidebars
|
55 |
default_value = "์์ํ ๋ฐค๋ค์ด ๊ณ์๋๋ ๋ ์ธ์ ๊ฐ๋ถํฐ ๋๋"
|
@@ -59,7 +58,7 @@ temperature = st.sidebar.slider(
|
|
59 |
"Temperature", value=1.0, min_value=0.0, max_value=1.0, step=0.05
|
60 |
)
|
61 |
top_k = st.sidebar.slider("Top-k", min_value=0, max_value=5, value=0)
|
62 |
-
top_p = st.sidebar.slider("Top-p", min_value=0.0, max_value=1.0, step=0.05, value=0
|
63 |
|
64 |
print("slider sidebars rendering completed")
|
65 |
|
|
|
48 |
|
49 |
# prompts
|
50 |
st.title("์ฃผ์ด์ง ๊ฐ์ ์ ๋ง๊ฒ ๋ฌธ์ฅ์ ๋ง๋๋ KoGPT์
๋๋ค ๐ฆ")
|
51 |
+
st.write("์ข์ธก์ ๊ฐ์ ์ํ์ ๋ณํ๋ฅผ ์ฃผ๊ณ , CTRL+Enter(CMD+Enter)๋ฅผ ๋๋ฅด์ธ์ ๐ค")
|
|
|
52 |
|
53 |
# text and sidebars
|
54 |
default_value = "์์ํ ๋ฐค๋ค์ด ๊ณ์๋๋ ๋ ์ธ์ ๊ฐ๋ถํฐ ๋๋"
|
|
|
58 |
"Temperature", value=1.0, min_value=0.0, max_value=1.0, step=0.05
|
59 |
)
|
60 |
top_k = st.sidebar.slider("Top-k", min_value=0, max_value=5, value=0)
|
61 |
+
top_p = st.sidebar.slider("Top-p", min_value=0.0, max_value=1.0, step=0.05, value=1.0)
|
62 |
|
63 |
print("slider sidebars rendering completed")
|
64 |
|