ldhldh commited on
Commit
64b66a8
1 Parent(s): 27520ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,9 +43,9 @@ 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.92, # float, representing input in 'Top-p (nucleus sampling)' Slider component
50
  40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
51
  0.85, # float, representing input in 'Temperature' Slider component
 
43
  return r
44
 
45
  def chat(x):
 
46
  result = gradio_client.predict(
47
+ x.replace('friend','Human').replace('you','Assistant'),
48
+ # str representing input in 'User input' Textbox component
49
  0.92, # float, representing input in 'Top-p (nucleus sampling)' Slider component
50
  40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
51
  0.85, # float, representing input in 'Temperature' Slider component