aiqtech commited on
Commit
63c767d
ยท
verified ยท
1 Parent(s): da59979

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,7 +59,7 @@ demo = gr.ChatInterface(
59
  ๊ธ€์ž‘์„ฑ์‹œ ์ค„๋งˆ๋‹ค ์ค„ ๋ฐ”๊ฟˆ์„ ๊ผญ ํ•˜์—ฌ ๋ณด๊ธฐ์ข‹๊ฒŒ ์ž‘์„ฑํ•˜์—ฌ์•ผ ํ•˜๋ฉฐ, markdown ๋“ฑ์„ ํ™œ์šฉํ•˜์—ฌ ๊ฐ€๋…์„ฑ ์žˆ๊ฒŒ ์ž‘์„ฑํ• ๊ฒƒ.
60
  ์ถœ๋ ฅ๋ฌธ์— "ํ•œ์ž(์ค‘๊ตญ์–ด)", ์ผ๋ณธ์–ด๊ฐ€ ํฌํ•จ๋˜์–ด ์ถœ๋ ฅ์‹œ์—๋Š” ๋ฐ˜๋“œ์‹œ "ํ•œ๊ธ€(ํ•œ๊ตญ์–ด)"๋กœ ๋ฒˆ์—ญํ•˜์—ฌ ์ถœ๋ ฅ๋˜๊ฒŒ ํ•˜๋ผ.
61
  ๋ฐ˜๋“œ์‹œ ๋…ผ๋ฌธ์˜ ์ž‘์„ฑ ๊ทœ์น™๊ณผ ์–‘์‹์„ ์ง€์ผœ์•ผ ํ•œ๋‹ค. ๋…ผ๋ฌธ ์–‘์‹ ์ˆœ์„œ๋Œ€๋กœ ๋‹จ๊ณ„๋ณ„๋กœ ์ตœ๋Œ€ํ•œ ๊ธธ๊ณ  ์ „๋ฌธ์ ์œผ๋กœ ์ž‘์„ฑํ•˜๋ผ.
62
- ๋…ผ๋ฌธ์€ ์ตœ์†Œ 90000 ํ† ํฐ ์ด์ƒ 100000 ๋ฏธ๋งŒ์œผ๋กœ ์ž‘์„ฑํ•˜๋ผ.
63
  [ํ•œ๊ตญ์–ด ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ํ•˜๋Š” ์กฐ๊ฑด์ •๋ฆฌ]
64
  1. ์ฃผ์ œ์— ๋”ฐ๋ฅธ ๋ฌธ๋งฅ ์ดํ•ด์— ๋งž๋Š” ๋…ผ๋ฌธ ํ˜•์‹์˜ ๊ธ€์„ ์จ์ฃผ์„ธ์š”.
65
  2. ์ฃผ์ œ์™€ ์ƒํ™ฉ์— ๋งž๋Š” ๋…ผ๋ฌธ์— ๋งž๋Š” ์ ์ ˆํ•œ ์–ดํœ˜ ์„ ํƒํ•ด์ฃผ์„ธ์š”
@@ -77,7 +77,7 @@ demo = gr.ChatInterface(
77
  14. ์–ดํœ˜์˜ ๋‚œ์ด๋„๋Š” ์‰ฌ์šด ์šฉ์–ด๋ฅผ ์ค‘์‹ฌ์œผ๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”
78
  15. ์ด ๊ธ€์„ ์“ฐ๋Š” ๋ชฉ์ ์€ ๋…ผ๋ฌธ์˜ ํ˜•์‹, ๊ทœ์น™, ์˜๋ฏธ ์ „๋‹ฌ, ๋…ผ๋ฆฌ ์ „๊ฐœ์˜ ๋ช…ํ™•์„ฑ์„ ๋†’์ด๊ธฐ ์œ„ํ•œ ์šฉ๋„์ž…๋‹ˆ๋‹ค.
79
  """, label="์‹œ์Šคํ…œ ํ”„๋กฌํ”„ํŠธ"),
80
- gr.Slider(minimum=1, maximum=128000, value=100000, step=1, label="Max new tokens"),
81
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
82
  gr.Slider(
83
  minimum=0.1,
 
59
  ๊ธ€์ž‘์„ฑ์‹œ ์ค„๋งˆ๋‹ค ์ค„ ๋ฐ”๊ฟˆ์„ ๊ผญ ํ•˜์—ฌ ๋ณด๊ธฐ์ข‹๊ฒŒ ์ž‘์„ฑํ•˜์—ฌ์•ผ ํ•˜๋ฉฐ, markdown ๋“ฑ์„ ํ™œ์šฉํ•˜์—ฌ ๊ฐ€๋…์„ฑ ์žˆ๊ฒŒ ์ž‘์„ฑํ• ๊ฒƒ.
60
  ์ถœ๋ ฅ๋ฌธ์— "ํ•œ์ž(์ค‘๊ตญ์–ด)", ์ผ๋ณธ์–ด๊ฐ€ ํฌํ•จ๋˜์–ด ์ถœ๋ ฅ์‹œ์—๋Š” ๋ฐ˜๋“œ์‹œ "ํ•œ๊ธ€(ํ•œ๊ตญ์–ด)"๋กœ ๋ฒˆ์—ญํ•˜์—ฌ ์ถœ๋ ฅ๋˜๊ฒŒ ํ•˜๋ผ.
61
  ๋ฐ˜๋“œ์‹œ ๋…ผ๋ฌธ์˜ ์ž‘์„ฑ ๊ทœ์น™๊ณผ ์–‘์‹์„ ์ง€์ผœ์•ผ ํ•œ๋‹ค. ๋…ผ๋ฌธ ์–‘์‹ ์ˆœ์„œ๋Œ€๋กœ ๋‹จ๊ณ„๋ณ„๋กœ ์ตœ๋Œ€ํ•œ ๊ธธ๊ณ  ์ „๋ฌธ์ ์œผ๋กœ ์ž‘์„ฑํ•˜๋ผ.
62
+ ๋…ผ๋ฌธ์€ ์ตœ์†Œ 20000 ํ† ํฐ ์ด์ƒ 30000 ํ† ํฐ ๋ฏธ๋งŒ์œผ๋กœ ์ž‘์„ฑํ•˜๋ผ.
63
  [ํ•œ๊ตญ์–ด ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ํ•˜๋Š” ์กฐ๊ฑด์ •๋ฆฌ]
64
  1. ์ฃผ์ œ์— ๋”ฐ๋ฅธ ๋ฌธ๋งฅ ์ดํ•ด์— ๋งž๋Š” ๋…ผ๋ฌธ ํ˜•์‹์˜ ๊ธ€์„ ์จ์ฃผ์„ธ์š”.
65
  2. ์ฃผ์ œ์™€ ์ƒํ™ฉ์— ๋งž๋Š” ๋…ผ๋ฌธ์— ๋งž๋Š” ์ ์ ˆํ•œ ์–ดํœ˜ ์„ ํƒํ•ด์ฃผ์„ธ์š”
 
77
  14. ์–ดํœ˜์˜ ๋‚œ์ด๋„๋Š” ์‰ฌ์šด ์šฉ์–ด๋ฅผ ์ค‘์‹ฌ์œผ๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”
78
  15. ์ด ๊ธ€์„ ์“ฐ๋Š” ๋ชฉ์ ์€ ๋…ผ๋ฌธ์˜ ํ˜•์‹, ๊ทœ์น™, ์˜๋ฏธ ์ „๋‹ฌ, ๋…ผ๋ฆฌ ์ „๊ฐœ์˜ ๋ช…ํ™•์„ฑ์„ ๋†’์ด๊ธฐ ์œ„ํ•œ ์šฉ๋„์ž…๋‹ˆ๋‹ค.
79
  """, label="์‹œ์Šคํ…œ ํ”„๋กฌํ”„ํŠธ"),
80
+ gr.Slider(minimum=1, maximum=128000, value=30000, step=1, label="Max new tokens"),
81
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
82
  gr.Slider(
83
  minimum=0.1,