cutechicken commited on
Commit
0126cba
โ€ข
1 Parent(s): 7773cb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -580,19 +580,19 @@ def create_demo():
580
  label="๋ฐ˜๋ณต ์–ต์ œ ๐Ÿ”„"
581
  )
582
 
583
-
584
- gr.Examples(
585
- examples=[
586
- ["๋‹ค์Œ ์ฝ”๋“œ์˜ ๋ฌธ์ œ์ ์„ ์ฐพ์•„๋‚ด๊ณ  ๊ฐœ์„ ๋œ ๋ฒ„์ „์„ ์ œ์‹œํ•ด์ฃผ์„ธ์š”:\ndef fibonacci(n):\n if n <= 1: return n\n return fibonacci(n-1) + fibonacci(n-2)"],
587
- ["๋‹ค์Œ ์˜์–ด ๋ฌธ์žฅ์„ ํ•œ๊ตญ์–ด๋กœ ๋ฒˆ์—ญํ•˜๊ณ , ์–ดํœ˜์™€ ๋ฌธ๋ฒ•์  ํŠน์ง•์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”: 'The implementation of artificial intelligence in healthcare has revolutionized patient care, yet it raises ethical concerns regarding privacy and decision-making autonomy.'"],
588
- ["์ฃผ์–ด์ง„ ๋ฐ์ดํ„ฐ๋ฅผ ๋ถ„์„ํ•˜๊ณ  ์ธ์‚ฌ์ดํŠธ๋ฅผ ๋„์ถœํ•ด์ฃผ์„ธ์š”:\n์—ฐ๋„๋ณ„ ๋งค์ถœ์•ก(์–ต์›)\n2019: 1200\n2020: 980\n2021: 1450\n2022: 2100\n2023: 1890"],
589
- ["๋‹ค์Œ ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•œ SWOT ๋ถ„์„์„ ํ•ด์ฃผ์„ธ์š”: '์ „ํ†ต์ ์ธ ์˜คํ”„๋ผ์ธ ์„œ์ ์ด ์˜จ๋ผ์ธ ํ”Œ๋žซํผ์œผ๋กœ์˜ ์ „ํ™˜์„ ๊ณ ๋ ค์ค‘์ž…๋‹ˆ๋‹ค. ๋…์ž๋“ค์˜ ๋””์ง€ํ„ธ ์ฝ˜ํ…์ธ  ์†Œ๋น„๊ฐ€ ์ฆ๊ฐ€ํ•˜๋Š” ์ƒํ™ฉ์—์„œ ๊ฒฝ์Ÿ๋ ฅ์„ ์œ ์ง€ํ•˜๋ฉด์„œ ๊ธฐ์กด ๊ณ ๊ฐ์ธต๋„ ์ง€ํ‚ค๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.'"],
590
- ["๋‹ค์Œ ์ˆ˜ํ•™ ๋ฌธ์ œ๋ฅผ ๋‹จ๊ณ„๋ณ„๋กœ ์ž์„ธํžˆ ํ’€์ดํ•ด์ฃผ์„ธ์š”: 'ํ•œ ์›์˜ ๋„“์ด๊ฐ€ ๊ทธ ์›์— ๋‚ด์ ‘ํ•˜๋Š” ์ •์‚ฌ๊ฐํ˜• ๋„“์ด์˜ 2๋ฐฐ์ผ ๋•Œ, ์›์˜ ๋ฐ˜์ง€๋ฆ„๊ณผ ์ •์‚ฌ๊ฐํ˜•์˜ ํ•œ ๋ณ€์˜ ๊ธธ์ด์˜ ๊ด€๊ณ„๋ฅผ ๊ตฌํ•˜์‹œ์˜ค.'"],
591
- ["๋‹ค์Œ SQL ์ฟผ๋ฆฌ๋ฅผ ์ตœ์ ํ™”ํ•˜๊ณ  ๊ฐœ์„ ์ ์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”:\nSELECT * FROM orders o\nLEFT JOIN customers c ON o.customer_id = c.id\nWHERE YEAR(o.order_date) = 2023\nAND c.country = 'Korea'\nORDER BY o.order_date DESC;"],
592
- ["๋‹ค์Œ ๋งˆ์ผ€ํŒ… ์บ ํŽ˜์ธ์˜ ROI๋ฅผ ๋ถ„์„ํ•˜๊ณ  ๊ฐœ์„ ๋ฐฉ์•ˆ์„ ์ œ์‹œํ•ด์ฃผ์„ธ์š”:\n์ด ๋น„์šฉ: 5000๋งŒ์›\n๋„๋‹ฌ์ž ์ˆ˜: 100๋งŒ๋ช…\nํด๋ฆญ๋ฅ : 2.3%\n์ „ํ™˜์œจ: 0.8%\nํ‰๊ท  ๊ตฌ๋งค์•ก: 35,000์›"],
593
- ],
594
- inputs=msg
595
- )
596
 
597
  # ์ด๋ฒคํŠธ ๋ฐ”์ธ๋”ฉ
598
  msg.submit(
 
580
  label="๋ฐ˜๋ณต ์–ต์ œ ๐Ÿ”„"
581
  )
582
 
583
+ # Examples ์œ„์น˜ ์ˆ˜์ •
584
+ gr.Examples(
585
+ examples=[
586
+ ["๋‹ค์Œ ์ฝ”๋“œ์˜ ๋ฌธ์ œ์ ์„ ์ฐพ์•„๋‚ด๊ณ  ๊ฐœ์„ ๋œ ๋ฒ„์ „์„ ์ œ์‹œํ•ด์ฃผ์„ธ์š”:\ndef fibonacci(n):\n if n <= 1: return n\n return fibonacci(n-1) + fibonacci(n-2)"],
587
+ ["๋‹ค์Œ ์˜์–ด ๋ฌธ์žฅ์„ ํ•œ๊ตญ์–ด๋กœ ๋ฒˆ์—ญํ•˜๊ณ , ์–ดํœ˜์™€ ๋ฌธ๋ฒ•์  ํŠน์ง•์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”: 'The implementation of artificial intelligence in healthcare has revolutionized patient care, yet it raises ethical concerns regarding privacy and decision-making autonomy.'"],
588
+ ["์ฃผ์–ด์ง„ ๋ฐ์ดํ„ฐ๋ฅผ ๋ถ„์„ํ•˜๊ณ  ์ธ์‚ฌ์ดํŠธ๋ฅผ ๋„์ถœํ•ด์ฃผ์„ธ์š”:\n์—ฐ๋„๋ณ„ ๋งค์ถœ์•ก(์–ต์›)\n2019: 1200\n2020: 980\n2021: 1450\n2022: 2100\n2023: 1890"],
589
+ ["๋‹ค์Œ ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•œ SWOT ๋ถ„์„์„ ํ•ด์ฃผ์„ธ์š”: '์ „ํ†ต์ ์ธ ์˜คํ”„๋ผ์ธ ์„œ์ ์ด ์˜จ๋ผ์ธ ํ”Œ๋žซํผ์œผ๋กœ์˜ ์ „ํ™˜์„ ๊ณ ๋ ค์ค‘์ž…๋‹ˆ๋‹ค. ๋…์ž๋“ค์˜ ๋””์ง€ํ„ธ ์ฝ˜ํ…์ธ  ์†Œ๋น„๊ฐ€ ์ฆ๊ฐ€ํ•˜๋Š” ์ƒํ™ฉ์—์„œ ๊ฒฝ์Ÿ๋ ฅ์„ ์œ ์ง€ํ•˜๋ฉด์„œ ๊ธฐ์กด ๊ณ ๊ฐ์ธต๋„ ์ง€ํ‚ค๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.'"],
590
+ ["๋‹ค์Œ ์ˆ˜ํ•™ ๋ฌธ์ œ๋ฅผ ๋‹จ๊ณ„๋ณ„๋กœ ์ž์„ธํžˆ ํ’€์ดํ•ด์ฃผ์„ธ์š”: 'ํ•œ ์›์˜ ๋„“์ด๊ฐ€ ๊ทธ ์›์— ๋‚ด์ ‘ํ•˜๋Š” ์ •์‚ฌ๊ฐํ˜• ๋„“์ด์˜ 2๋ฐฐ์ผ ๋•Œ, ์›์˜ ๋ฐ˜์ง€๋ฆ„๊ณผ ์ •์‚ฌ๊ฐํ˜•์˜ ํ•œ ๋ณ€์˜ ๊ธธ์ด์˜ ๊ด€๊ณ„๋ฅผ ๊ตฌํ•˜์‹œ์˜ค.'"],
591
+ ["๋‹ค์Œ SQL ์ฟผ๋ฆฌ๋ฅผ ์ตœ์ ํ™”ํ•˜๊ณ  ๊ฐœ์„ ์ ์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”:\nSELECT * FROM orders o\nLEFT JOIN customers c ON o.customer_id = c.id\nWHERE YEAR(o.order_date) = 2023\nAND c.country = 'Korea'\nORDER BY o.order_date DESC;"],
592
+ ["๋‹ค์Œ ๋งˆ์ผ€ํŒ… ์บ ํŽ˜์ธ์˜ ROI๋ฅผ ๋ถ„์„ํ•˜๊ณ  ๊ฐœ์„ ๋ฐฉ์•ˆ์„ ์ œ์‹œํ•ด์ฃผ์„ธ์š”:\n์ด ๋น„์šฉ: 5000๋งŒ์›\n๋„๋‹ฌ์ž ์ˆ˜: 100๋งŒ๋ช…\nํด๋ฆญ๋ฅ : 2.3%\n์ „ํ™˜์œจ: 0.8%\nํ‰๊ท  ๊ตฌ๋งค์•ก: 35,000์›"],
593
+ ],
594
+ inputs=msg
595
+ )
596
 
597
  # ์ด๋ฒคํŠธ ๋ฐ”์ธ๋”ฉ
598
  msg.submit(