ginipick commited on
Commit
d1b1bcc
Β·
verified Β·
1 Parent(s): 4aefd34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -64,9 +64,8 @@ def respond(
64
  demo = gr.Interface(
65
  fn=respond,
66
  inputs=[
67
- gr.Textbox(lines=2, placeholder="λ©”μ‹œμ§€λ₯Ό μž…λ ₯ν•˜μ„Έμš”..."),
68
- gr.State(value=[]),
69
- gr.Textbox(lines=2, placeholder="μ‹œμŠ€ν…œ λ©”μ‹œμ§€λ₯Ό μž…λ ₯ν•˜μ„Έμš”..."),
70
  gr.Slider(minimum=1, maximum=128000, value=100, step=1, label="Max new tokens"),
71
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
72
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
@@ -78,7 +77,7 @@ demo = gr.Interface(
78
  examples=[
79
  ["λ°˜λ“œμ‹œ ν•œκΈ€λ‘œ λ‹΅λ³€ν•˜λΌ"],
80
  ["μ•„μ΄μŠ¬λž€λ“œμ˜ μˆ˜λ„λŠ” 어디지?"],
81
- ["λ„ˆλŠ” λˆ„κ°€ λ§Œλ“€μ—ˆμ§€?"],
82
  ["계속 μ΄μ–΄μ„œ λ‹΅λ³€ν•˜λΌ"],
83
  ],
84
  cache_examples=False # 캐싱 λΉ„ν™œμ„±ν™” μ„€μ •
 
64
  demo = gr.Interface(
65
  fn=respond,
66
  inputs=[
67
+ gr.Textbox(lines=2, placeholder="λ©”μ‹œμ§€λ₯Ό μž…λ ₯ν•˜μ„Έμš”...", label="μž…λ ₯ λ©”μ‹œμ§€"),
68
+ gr.Textbox(lines=2, placeholder="μ‹œμŠ€ν…œ λ©”μ‹œμ§€λ₯Ό μž…λ ₯ν•˜μ„Έμš”...", label="μ‹œμŠ€ν…œ λ©”μ‹œμ§€"),
 
69
  gr.Slider(minimum=1, maximum=128000, value=100, step=1, label="Max new tokens"),
70
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
71
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
 
77
  examples=[
78
  ["λ°˜λ“œμ‹œ ν•œκΈ€λ‘œ λ‹΅λ³€ν•˜λΌ"],
79
  ["μ•„μ΄μŠ¬λž€λ“œμ˜ μˆ˜λ„λŠ” 어디지?"],
80
+ ["ν₯미둜운 주제λ₯Ό μ•Œλ €μ€˜"],
81
  ["계속 μ΄μ–΄μ„œ λ‹΅λ³€ν•˜λΌ"],
82
  ],
83
  cache_examples=False # 캐싱 λΉ„ν™œμ„±ν™” μ„€μ •