ldhldh commited on
Commit
f422380
ยท
1 Parent(s): 2a18f96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -44,7 +44,8 @@ def mbti(x):
44
 
45
  def chat(x):
46
  x = f"{x}"
47
- x = x.replace('friend','Human').replace('you','Assistant')
 
48
  result = gradio_client.predict(
49
  x,
50
  # str representing input in 'User input' Textbox component
 
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,
51
  # str representing input in 'User input' Textbox component