ldhldh commited on
Commit
1999931
Β·
1 Parent(s): c5e6ed1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def mbti(x):
44
 
45
  def chat(x):
46
  x = f"***길게 λŒ€λ‹΅ν•΄μ€˜*** {x}"
47
- x = x.replace('friend','\nHuman').replace('you','\nAssistant').replace('###','\n\n###')
48
  print(f"{x}")
49
  result = gradio_client.predict(
50
  x,
@@ -57,7 +57,7 @@ def chat(x):
57
  fn_index=0
58
  )
59
  result = str(result)
60
- output = result[len(x)-4:]
61
  output = re.sub('ν•˜ν•˜','γ…Žγ…Ž', output)
62
  output = output.split('띓')[0]
63
  output = output.split('<|endoftext|>')[0]
 
44
 
45
  def chat(x):
46
  x = f"***길게 λŒ€λ‹΅ν•΄μ€˜*** {x}"
47
+ x = x.replace('friend','Human').replace('you','Assistant')
48
  print(f"{x}")
49
  result = gradio_client.predict(
50
  x,
 
57
  fn_index=0
58
  )
59
  result = str(result)
60
+ output = result[len(x)-1:]
61
  output = re.sub('ν•˜ν•˜','γ…Žγ…Ž', output)
62
  output = output.split('띓')[0]
63
  output = output.split('<|endoftext|>')[0]