Update app.py
Browse files
app.py
CHANGED
|
@@ -39,12 +39,12 @@ def interact_summarization(protocol_name: str, temp=0.1) -> list:
|
|
| 39 |
rfc_number = extract_rfc_number(response_text)
|
| 40 |
|
| 41 |
if rfc_number:
|
| 42 |
-
return [(f"🔍
|
| 43 |
else:
|
| 44 |
-
return [(f"🔍
|
| 45 |
|
| 46 |
except Exception as e:
|
| 47 |
-
return [(f"🔍
|
| 48 |
|
| 49 |
# 重置对话
|
| 50 |
def reset() -> list:
|
|
|
|
| 39 |
rfc_number = extract_rfc_number(response_text)
|
| 40 |
|
| 41 |
if rfc_number:
|
| 42 |
+
return [(f"🔍 : **{protocol_name}**", f"📄 RFC 编号: **{rfc_number}**")]
|
| 43 |
else:
|
| 44 |
+
return [(f"🔍 : **{protocol_name}**", "❌ 未找到对应的 RFC 号码。")]
|
| 45 |
|
| 46 |
except Exception as e:
|
| 47 |
+
return [(f"🔍 : **{protocol_name}**", f"⚠️ 错误: {str(e)}")]
|
| 48 |
|
| 49 |
# 重置对话
|
| 50 |
def reset() -> list:
|