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
+