Spaces:
Sleeping
Sleeping
Update app.py
Browse files565 unmodified lines566567568569570571572573565 unmodified lineshistory.append({"role": "assistant", "content": "【消极评论主题分析】\n" + analysis})return history# 添加用户消息处理函数def user_message(user_message: str, history: List[Dict]) -> tuple[str, List[Dict]]:"""处理用户输入的消息"""if not user_message.strip():return "", history565 unmodified lines566567568569570571565 unmodified lineshistory.append({"role": "assistant", "content": "【消极评论主题分析】\n" + analysis})return history"""处理用户输入的消息"""if not user_message.strip():return "", history
app.py-2