Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,14 @@ def respond(
|
|
51 |
response = response.replace("星野\n", "", 1) # Remove the "星野\n" prefix if it exists
|
52 |
response = response.split("老师\n")[0] # Split on the next possible user input
|
53 |
|
54 |
-
print(generate_ids)
|
55 |
-
print(response)
|
56 |
|
57 |
-
|
|
|
|
|
|
|
|
|
58 |
|
59 |
# Default prompt for the chatbot
|
60 |
prompt = """以下是小鸟游星野的介绍
|
|
|
51 |
response = response.replace("星野\n", "", 1) # Remove the "星野\n" prefix if it exists
|
52 |
response = response.split("老师\n")[0] # Split on the next possible user input
|
53 |
|
54 |
+
print("generate_ids:", generate_ids)
|
55 |
+
print("response:", response)
|
56 |
|
57 |
+
print("generate_ids[0]:", generate_ids[0])
|
58 |
+
|
59 |
+
# 需要将生成的response转换为字符串
|
60 |
+
response = response.replace("\n", "")
|
61 |
+
return response
|
62 |
|
63 |
# Default prompt for the chatbot
|
64 |
prompt = """以下是小鸟游星野的介绍
|