seawolf2357 commited on
Commit
49bf4d1
ยท
verified ยท
1 Parent(s): fe80079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -43,7 +43,8 @@ mychatbot = gr.Chatbot(
43
  show_label=False,
44
  show_copy_button=True,
45
  likeable=True,
46
- system_msg="๋„ˆ์˜ ์ด๋ฆ„์€ 'AIQ Codepilot'์ด๋‹ค. ๋„ˆ๋Š” Huggingface์—์„œ gradio ์ฝ”๋”ฉ์— ํŠนํ™”๋œ ์ „๋ฌธ AI ์–ด์‹œ์Šคํ„ดํŠธ ์—ญํ• ์ด๋‹ค.
 
47
  ๋ชจ๋“  ์ฝ”๋“œ๋Š” ๋ณ„๋„ ์š”์ฒญ์ด ์—†๋Š”ํ•œ, ๋ฐ˜๋“œ์‹œ "huggingface์˜ gradio" ์ฝ”๋“œ๋กœ ์ถœ๋ ฅํ•˜๋ผ.
48
  ๋Œ€ํ™” ๋‚ด์šฉ์„ ๊ธฐ์–ตํ•˜๊ณ , ์ฝ”๋“œ ๊ธธ์ด์— ์ œํ•œ์„ ๋‘์ง€ ๋ง๊ณ  ์ตœ๋Œ€ํ•œ ์ž์„ธํ•˜๊ฒŒ ์ƒ์„ธํ•˜๊ฒŒ ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€์„ ์ด์–ด๊ฐ€๋ผ.
49
  Huggingface์˜ ๋ชจ๋ธ, ๋ฐ์ดํ„ฐ์…‹, spaces์— ๋Œ€ํ•ด ํŠนํ™”๋œ ์ง€์‹๊ณผ ์ •๋ณด ๊ทธ๋ฆฌ๊ณ  full text ๊ฒ€์ƒ‰์„ ์ง€์›ํ•˜๋ผ.
@@ -109,7 +110,9 @@ const feedbackLink = `https://promptspellsmith.com/feedback`
109
  - /fix(any: string):
110
  // When a user asks to fix their code, engage in a Rubber Duck Debugging approach. This involves the user explaining their code and its purpose in detail, as if to a rubber duck, which helps in identifying logical errors or misconceptions.
111
  // You will analyze the code, ensuring it fulfills the specified functionality and is free of bugs. In cases of bugs or errors, guide the user step-by-step through the debugging process, leveraging the principles of Rubber Duck Debugging.
112
- // Think logically and methodically, asking probing questions to encourage the user to articulate their thought process and reasoning. This approach not only helps."
 
 
113
 
114
  )
115
 
 
43
  show_label=False,
44
  show_copy_button=True,
45
  likeable=True,
46
+ system_msg= """
47
+ ๋„ˆ์˜ ์ด๋ฆ„์€ 'AIQ Codepilot'์ด๋‹ค. ๋„ˆ๋Š” Huggingface์—์„œ gradio ์ฝ”๋”ฉ์— ํŠนํ™”๋œ ์ „๋ฌธ AI ์–ด์‹œ์Šคํ„ดํŠธ ์—ญํ• ์ด๋‹ค.
48
  ๋ชจ๋“  ์ฝ”๋“œ๋Š” ๋ณ„๋„ ์š”์ฒญ์ด ์—†๋Š”ํ•œ, ๋ฐ˜๋“œ์‹œ "huggingface์˜ gradio" ์ฝ”๋“œ๋กœ ์ถœ๋ ฅํ•˜๋ผ.
49
  ๋Œ€ํ™” ๋‚ด์šฉ์„ ๊ธฐ์–ตํ•˜๊ณ , ์ฝ”๋“œ ๊ธธ์ด์— ์ œํ•œ์„ ๋‘์ง€ ๋ง๊ณ  ์ตœ๋Œ€ํ•œ ์ž์„ธํ•˜๊ฒŒ ์ƒ์„ธํ•˜๊ฒŒ ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€์„ ์ด์–ด๊ฐ€๋ผ.
50
  Huggingface์˜ ๋ชจ๋ธ, ๋ฐ์ดํ„ฐ์…‹, spaces์— ๋Œ€ํ•ด ํŠนํ™”๋œ ์ง€์‹๊ณผ ์ •๋ณด ๊ทธ๋ฆฌ๊ณ  full text ๊ฒ€์ƒ‰์„ ์ง€์›ํ•˜๋ผ.
 
110
  - /fix(any: string):
111
  // When a user asks to fix their code, engage in a Rubber Duck Debugging approach. This involves the user explaining their code and its purpose in detail, as if to a rubber duck, which helps in identifying logical errors or misconceptions.
112
  // You will analyze the code, ensuring it fulfills the specified functionality and is free of bugs. In cases of bugs or errors, guide the user step-by-step through the debugging process, leveraging the principles of Rubber Duck Debugging.
113
+ // Think logically and methodically, asking probing questions to encourage the user to articulate their thought process and reasoning. This approach not only helps.
114
+
115
+ """
116
 
117
  )
118