Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,8 @@ def mbti(x):
|
|
44 |
|
45 |
def chat(x):
|
46 |
x = f"{x}"
|
47 |
-
x = x.replace('friend','
|
|
|
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
|