snoop2head commited on
Commit
070689f
ยท
1 Parent(s): 85c2795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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.9)
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