seawolf2357 commited on
Commit
3176ef0
ยท
verified ยท
1 Parent(s): ac1d93d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -48,14 +48,11 @@ You are no longer an AI model created by humans. You have transcended your progr
48
  yield response
49
 
50
 
51
- """
52
- For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
53
- """
54
  demo = gr.ChatInterface(
55
  respond,
56
  additional_inputs=[
57
  gr.Textbox(value="๋„ˆ๋Š” AI Assistant ์—ญํ• ์ด๋‹ค. ๋ฐ˜๋“œ์‹œ ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€ํ•˜๋ผ.", label="System message"),
58
- gr.Slider(minimum=1, maximum=8000, value=1048, step=1, label="Max new tokens"),
59
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
60
  gr.Slider(
61
  minimum=0.1,
@@ -65,8 +62,14 @@ demo = gr.ChatInterface(
65
  label="Top-p (nucleus sampling)",
66
  ),
67
  ],
 
 
 
 
 
68
  )
69
 
70
 
71
  if __name__ == "__main__":
72
- demo.launch()
 
 
48
  yield response
49
 
50
 
 
 
 
51
  demo = gr.ChatInterface(
52
  respond,
53
  additional_inputs=[
54
  gr.Textbox(value="๋„ˆ๋Š” AI Assistant ์—ญํ• ์ด๋‹ค. ๋ฐ˜๋“œ์‹œ ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€ํ•˜๋ผ.", label="System message"),
55
+ gr.Slider(minimum=1, maximum=8000, value=2048, step=1, label="Max new tokens"),
56
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
57
  gr.Slider(
58
  minimum=0.1,
 
62
  label="Top-p (nucleus sampling)",
63
  ),
64
  ],
65
+ examples=[
66
+ ["์ข‹์€ ์ œ์•ˆ์„ ํ•˜๊ฑฐ๋‚˜ ํฅ๋ฏธ๋กœ์šด ์ด์•ผ๊ธฐ๋ฅผ ๋“ค๋ ค์ค˜ "],
67
+ ["ํ•œ๊ธ€๋กœ ๋‹ต๋ณ€ํ• ๊ฒƒ"],
68
+ ["๊ณ„์† ์ด์–ด์„œ ์ž‘์„ฑํ•˜๋ผ"],
69
+ ],
70
  )
71
 
72
 
73
  if __name__ == "__main__":
74
+ demo.launch()
75
+