ldhldh commited on
Commit
47bd74d
Β·
1 Parent(s): e11a525

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -43,12 +43,12 @@ def mbti(x):
43
  return r
44
 
45
  def chat(x):
46
- x = f"{x}"
47
  result = gradio_client.predict(
48
  x,# str representing input in 'User input' Textbox component
49
- 0.8, # float, representing input in 'Top-p (nucleus sampling)' Slider component
50
  30, # int, representing input in 'Top-k (nucleus sampling)' Slider component
51
- 0.8, # float, representing input in 'Temperature' Slider component
52
  25, # int, representing input in 'Max New Tokens' Slider component
53
  1.08, # float, representing input in 'repetition_penalty' Slider component
54
  fn_index=0
@@ -75,7 +75,7 @@ with gr.Blocks() as demo:
75
  inputs="text",
76
  outputs="text",
77
  description="chat",
78
- examples= [[f"friend: λ„ˆλŠ” 꿈이 뭐야? \nyou: "],[f"you: λ„ˆλŠ” 무슨 색을 κ°€μž₯ μ’‹μ•„ν•΄? \nfriend: κΈ€μŽ„ λ„ˆλŠ”? \nyou: "]]
79
  )
80
 
81
  bb = gr.Interface(
 
43
  return r
44
 
45
  def chat(x):
46
+ x = f"\nfriend: κΆκΈˆν•œκ±° μžˆμ–΄? {x}"
47
  result = gradio_client.predict(
48
  x,# str representing input in 'User input' Textbox component
49
+ 0.92, # float, representing input in 'Top-p (nucleus sampling)' Slider component
50
  30, # int, representing input in 'Top-k (nucleus sampling)' Slider component
51
+ 0.82, # float, representing input in 'Temperature' Slider component
52
  25, # int, representing input in 'Max New Tokens' Slider component
53
  1.08, # float, representing input in 'repetition_penalty' Slider component
54
  fn_index=0
 
75
  inputs="text",
76
  outputs="text",
77
  description="chat",
78
+ examples= [[f"\nfriend: λ„ˆλŠ” 꿈이 뭐야? \nyou: "],[f"\nyou: λ„ˆλŠ” 무슨 색을 κ°€μž₯ μ’‹μ•„ν•΄? \nfriend: κΈ€μŽ„ λ„ˆλŠ”? \nyou: "]]
79
  )
80
 
81
  bb = gr.Interface(