Skip to content

Commit c977dbe

Browse files
fix: clear codes
1 parent d0d69fa commit c977dbe

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

owl/webapp.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ def process_message(role, content):
181181
content = "\n".join(lines)
182182

183183
role_emoji = "🙋" if role.lower() == "user" else "🤖"
184-
# return f"[{role.title()} Agent]: {content}"
185184
return f"""### {role_emoji} {role.title()} Agent
186185
187186
{content}"""
@@ -238,8 +237,6 @@ def process_message(role, content):
238237
if not log.endswith("\n"):
239238
formatted_logs.append("\n")
240239

241-
# with open("logs.md", "w") as f:
242-
# f.write("\n".join(formatted_logs))
243240
return "\n".join(formatted_logs)
244241

245242

@@ -1140,7 +1137,7 @@ def process_in_background():
11401137
# Add conversation record display area
11411138
with gr.Box():
11421139
log_display2 = gr.Markdown(
1143-
value="暂无对话记录",
1140+
value="No conversation records yet.",
11441141
elem_classes="log-display",
11451142
)
11461143

owl/webapp_zh.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ def process_message(role, content):
181181
content = "\n".join(lines)
182182

183183
role_emoji = "🙋" if role.lower() == "user" else "🤖"
184-
# return f"[{role.title()} Agent]: {content}"
185184
return f"""### {role_emoji} {role.title()} Agent
186185
187186
{content}"""
@@ -238,8 +237,6 @@ def process_message(role, content):
238237
if not log.endswith("\n"):
239238
formatted_logs.append("\n")
240239

241-
# with open("logs.md", "w") as f:
242-
# f.write("\n".join(formatted_logs))
243240
return "\n".join(formatted_logs)
244241

245242

@@ -1116,7 +1113,7 @@ def process_in_background():
11161113
# 添加对话记录显示区域
11171114
with gr.Box():
11181115
log_display2 = gr.Markdown(
1119-
value="暂无对话记录",
1116+
value="暂无对话记录",
11201117
elem_classes="log-display",
11211118
)
11221119

0 commit comments

Comments
 (0)