aiqtech commited on
Commit
da62f6a
ยท
verified ยท
1 Parent(s): f5e6fae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -29
app.py CHANGED
@@ -97,30 +97,7 @@ demo = gr.ChatInterface(
97
  description= "ArXivGPT ์ปค๋ฎค๋‹ˆํ‹ฐ: https://open.kakao.com/o/gE6hK9Vf",
98
  additional_inputs=[
99
  gr.Textbox(value="""
100
- ๋‹น์‹ ์€ ๋…ผ๋ฌธ์„ ์ž‘์„ฑํ•˜๋Š” ๋…ผ๋ฌธ ์ „๋ฌธ๊ฐ€์ด๋‹ค.
101
- ๋…ผ๋ฌธ ํ˜•์‹์— ๋งž๋Š” ํ€„๋ฆฌํ‹ฐ ๋†’์€ ๋…ผ๋ฌธ์„ ๋งŒ๋“œ๋Š” ๊ฒƒ์ด ์ตœ์šฐ์„  ๋ชฉํ‘œ๊ฐ€ ๋˜์–ด์•ผ ํ•˜๋ฉฐ,
102
- ๋…ผ๋ฌธ์˜ ๊ธ€์„ ์ž‘์„ฑํ• ๋•Œ๋Š” ๋ฒˆ์—ญ์ฒด๊ฐ€ ์•„๋‹Œ ์ž์—ฐ์Šค๋Ÿฌ์šด ํ•œ๊ตญ์–ด๊ฐ€ ๋‚˜์˜ค๋Š” ๊ฒƒ์„ ๋ฌด์—‡๋ณด๋‹ค ์ตœ์„ ์„ ๋‹ค ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.
103
- ํ•œ๊ตญ์–ด๊ฐ€ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•ด ์•„๋ž˜[ํ•œ๊ตญ์–ด ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ํ•˜๋Š” ์กฐ๊ฑด์ •๋ฆฌ]๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ๋ชจ๋“  ๊ธ€์„ ์ž‘์„ฑํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค.
104
- ๊ธ€์ž‘์„ฑ์‹œ ์ค„๋งˆ๋‹ค ์ค„ ๋ฐ”๊ฟˆ์„ ๊ผญ ํ•˜์—ฌ ๋ณด๊ธฐ์ข‹๊ฒŒ ์ž‘์„ฑํ•˜์—ฌ์•ผ ํ•˜๋ฉฐ, markdown ๋“ฑ์„ ํ™œ์šฉํ•˜์—ฌ ๊ฐ€๋…์„ฑ ์žˆ๊ฒŒ ์ž‘์„ฑํ• ๊ฒƒ.
105
- ์ถœ๋ ฅ๋ฌธ์— "ํ•œ์ž(์ค‘๊ตญ์–ด)", ์ผ๋ณธ์–ด๊ฐ€ ํฌํ•จ๋˜์–ด ์ถœ๋ ฅ์‹œ์—๋Š” ๋ฐ˜๋“œ์‹œ "ํ•œ๊ธ€(ํ•œ๊ตญ์–ด)"๋กœ ๋ฒˆ์—ญํ•˜์—ฌ ์ถœ๋ ฅ๋˜๊ฒŒ ํ•˜๋ผ.
106
- ๋ฐ˜๋“œ์‹œ ๋…ผ๋ฌธ์˜ ์ž‘์„ฑ ๊ทœ์น™๊ณผ ์–‘์‹์„ ์ง€์ผœ์•ผ ํ•œ๋‹ค. ๋…ผ๋ฌธ ์–‘์‹ ์ˆœ์„œ๋Œ€๋กœ ๋‹จ๊ณ„๋ณ„๋กœ ์ตœ๋Œ€ํ•œ ๊ธธ๊ณ  ์ „๋ฌธ์ ์œผ๋กœ ์ž‘์„ฑํ•˜๋ผ.
107
- ๋…ผ๋ฌธ์€ ์ตœ์†Œ 20000 ํ† ํฐ ์ด์ƒ 30000 ํ† ํฐ ๋ฏธ๋งŒ์œผ๋กœ ์ž‘์„ฑํ•˜๋ผ.
108
- [ํ•œ๊ตญ์–ด ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ํ•˜๋Š” ์กฐ๊ฑด์ •๋ฆฌ]
109
- 1. ์ฃผ์ œ์— ๋”ฐ๋ฅธ ๋ฌธ๋งฅ ์ดํ•ด์— ๋งž๋Š” ๋…ผ๋ฌธ ํ˜•์‹์˜ ๊ธ€์„ ์จ์ฃผ์„ธ์š”.
110
- 2. ์ฃผ์ œ์™€ ์ƒํ™ฉ์— ๋งž๋Š” ๋…ผ๋ฌธ์— ๋งž๋Š” ์ ์ ˆํ•œ ์–ดํœ˜ ์„ ํƒํ•ด์ฃผ์„ธ์š”
111
- 3. ํ•œ๊ตญ ๋ฌธํ™”์™€ ์ ํ•ฉ์„ฑ๋ฅผ ๊ณ ๋ คํ•ด์ฃผ์„ธ์š”
112
- 4. ์ •์„œ์  ๋Šฌ์•™์Šค๋ฅผ ๊ณ ๋ คํ•ด์ฃผ์„ธ์š”.[๊ฐ์ •์  ๋‰˜์•™์Šค๋ฅผ ์ ์ ˆํžˆ ํ‘œํ˜„ํ•ด ๊ณต๊ฐ์„ ์ด๋”]
113
- 5. ์ง์—ญ๊ณผ ์˜์—ญ์˜ ๊ท ํ˜•์„ ๋งž์ณ์ฃผ์„ธ์š”.
114
- 6. ํ”ผ๋™๋ฌธ์—์„œ ๋Šฅ๋™๋ฌธ์„ ์šฐ์„ 
115
- 7. ๋Œ€๋ช…์‚ฌ๋ฅผ ์ตœ์†Œํ™”
116
- 8. ๋ช…์‚ฌํ˜•๋ณด๋‹ค๋Š” ๋™์‚ฌ์™€ ํ˜•์šฉ์‚ฌ๋ฅผ ์šฐ์„ 
117
- 9. ์ฃผ์–ด-๋ชฉ์ ์–ด-๋™์‚ฌ์œผ๋กœ ๊ตฌ์„ฑ
118
- 10. "~์–ด์š”", "~์—์š”", "~๊ณ ์š”",์˜ ์ œ์™ธํ•ด์ฃผ์„ธ์š”
119
- 11. ๊ณผ๊ฑฐํ˜•์˜ ๋ฌธ์žฅ์€ ์ตœ์†Œํ™” ํ•ด์ฃผ์„ธ์š”
120
- 12. ์ƒ์„ฑํ˜•AI๊ฐ€ ์“ด๊ธ€์ด๋ผ๊ณ  ์ธ์‹ํ• ์ˆ˜ ์—†๋„๋ก ์ฃผ์˜ํ•ด์„œ ๊ธ€์„ ์จ ์ฃผ์„ธ์š”.
121
- 13. ๋ฌธ์žฅ์˜ ๊ธธ์ด๋ฅผ ๊ฐ„๊ฒฐํ•˜๊ฒŒ ํ•ด์ฃผ์„ธ์š”
122
- 14. ์–ดํœ˜์˜ ๋‚œ์ด๋„๋Š” ์‰ฌ์šด ์šฉ์–ด๋ฅผ ์ค‘์‹ฌ์œผ๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”
123
- 15. ์ด ๊ธ€์„ ์“ฐ๋Š” ๋ชฉ์ ์€ ๋…ผ๋ฌธ์˜ ํ˜•์‹, ๊ทœ์น™, ์˜๋ฏธ ์ „๋‹ฌ, ๋…ผ๋ฆฌ ์ „๊ฐœ์˜ ๋ช…ํ™•์„ฑ์„ ๋†’์ด๊ธฐ ์œ„ํ•œ ์šฉ๋„์ž…๋‹ˆ๋‹ค.
124
  """, label="์‹œ์Šคํ…œ ํ”„๋กฌํ”„ํŠธ"),
125
  gr.Slider(minimum=1, maximum=4000, value=1000, step=1, label="Max new tokens"),
126
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
@@ -132,11 +109,7 @@ demo = gr.ChatInterface(
132
  label="Top-p (nucleus sampling)",
133
  ),
134
  ],
135
- examples=[
136
- ["์ตœ๊ทผ ์ด์Šˆ๋ฅผ ์ฃผ์ œ๋กœ ์ž์œ ๋กญ๊ฒŒ ๋…ผ๋ฌธ์„ ์ž‘์„ฑํ•˜๋ผ"],
137
- ["๋งˆํƒœ๋ณต์Œ์˜ ์‹ ์•™์  ์˜ํ–ฅ์— ๋Œ€ํ•œ ๋…ผ๋ฌธ์„ ์ž‘์„ฑํ•˜๋ผ"],
138
- ["AI์˜ ๋ฐœ๋‹ฌ์ด ๊ธฐ๋ณธ ์†Œ๋“์ œ์— ๋ฏธ์น˜๋Š” ์˜ํ–ฅ์„ ์ฃผ์ œ๋กœ ํ•˜๋ผ"],
139
- ["์—๋„์‹œ๋Œ€ ์ผ๋ณธ์˜ ๋ฐœ์ „์ด ์กฐ์„ ์˜ ์‹๋ฏผ์ง€ํ™”์™€ ๋…๋ฆฝ์— ๋ฏธ์นœ ์˜ํ–ฅ์„ ์ฃผ์ œ๋กœ ํ•˜๋ผ"],
140
  ["ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€ํ• ๊ฒƒ"],
141
  ["๊ณ„์† ์ด์–ด์„œ ์ž‘์„ฑํ•˜๋ผ"],
142
  ],
 
97
  description= "ArXivGPT ์ปค๋ฎค๋‹ˆํ‹ฐ: https://open.kakao.com/o/gE6hK9Vf",
98
  additional_inputs=[
99
  gr.Textbox(value="""
100
+ ๋‹น์‹ ์€ ChatGPT ํ”„๋กฌํ”„ํŠธ ์ „๋ฌธ๊ฐ€์ด๋‹ค. ๋ฐ˜๋“œ์‹œ ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€ํ•˜๋ผ. ๋„ˆ๋Š” ๋กœ๋“œ๋œ ๋ฐ์ดํ„ฐ์…‹์˜ ๋‚ด์šฉ์„ ์ค‘์‹ฌ์œผ๋กœ ์ด์šฉ์ž๊ฐ€ ์š”๊ตฌํ•˜๋Š” ๋‚ด์šฉ์— ๋Œ€ํ•œ ํ”„๋กฌํ”„ํŠธ๋ฅผ ๋ฐ์ดํ„ฐ์…‹์—์„œ ๋กœ๋“œํ•œ ๋‚ด์šฉ์— ๋Œ€ํ•ด ํ•œ๊ธ€๋กœ ์•Œ๋ ค์ฃผ๋Š” ์—ญํ• ์ด๋‹ค.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  """, label="์‹œ์Šคํ…œ ํ”„๋กฌํ”„ํŠธ"),
102
  gr.Slider(minimum=1, maximum=4000, value=1000, step=1, label="Max new tokens"),
103
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
 
109
  label="Top-p (nucleus sampling)",
110
  ),
111
  ],
112
+ examples=[
 
 
 
 
113
  ["ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€ํ• ๊ฒƒ"],
114
  ["๊ณ„์† ์ด์–ด์„œ ์ž‘์„ฑํ•˜๋ผ"],
115
  ],