ldhldh commited on
Commit
f80e951
Β·
1 Parent(s): bcc0372

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -43,17 +43,17 @@ def mbti(x):
43
  return r
44
 
45
  def chat(x):
46
- x = f"{x}"
47
  x = x.replace('friend','Human').replace('you','Assistant')
48
  print("\n" + f"{x}")
49
  result = gradio_client.predict(
50
  x,
51
  # str representing input in 'User input' Textbox component
52
- 0.90, # float, representing input in 'Top-p (nucleus sampling)' Slider component
53
  40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
54
- 0.75, # float, representing input in 'Temperature' Slider component
55
  30, # int, representing input in 'Max New Tokens' Slider component
56
- 1.08, # float, representing input in 'repetition_penalty' Slider component
57
  fn_index=0
58
  )
59
  result = str(result)
 
43
  return r
44
 
45
  def chat(x):
46
+ x = f"[***λ„ˆλŠ” μƒλŒ€μ—κ²Œ λ‹€μ–‘ν•œ μ§ˆλ¬Έμ„ ν•˜λ©° λŒ€ν™”λ₯Ό 이끌고 μžˆμŠ΅λ‹ˆλ‹€. 긍정적이고, κ³΅κ°ν•˜λ©°, 길게 λŒ€λ‹΅ν•΄μ£Όμ„Έμš”***] {x}"
47
  x = x.replace('friend','Human').replace('you','Assistant')
48
  print("\n" + f"{x}")
49
  result = gradio_client.predict(
50
  x,
51
  # str representing input in 'User input' Textbox component
52
+ 0.92, # float, representing input in 'Top-p (nucleus sampling)' Slider component
53
  40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
54
+ 0.65, # float, representing input in 'Temperature' Slider component
55
  30, # int, representing input in 'Max New Tokens' Slider component
56
+ 1.2, # float, representing input in 'repetition_penalty' Slider component
57
  fn_index=0
58
  )
59
  result = str(result)