Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import os
|
|
3 |
import requests
|
4 |
|
5 |
# 如果你只打算通过 prompt 来定制机器人的行为,只需要修改这段 prompt 就够了。
|
6 |
-
prompt = """
|
7 |
-
|
8 |
########
|
9 |
|
10 |
|
@@ -27,7 +27,7 @@ def chat(p, qid, uid):
|
|
27 |
iface = gr.Interface(fn=chat,
|
28 |
inputs=["text", "text", "text"],
|
29 |
outputs=["text", "text"],
|
30 |
-
description="""
|
31 |
[对话测试](https://huggingface.co/spaces/BaixingAI/hackathon_test) [参考文档](https://huggingface.co/spaces/baixing/hackathon_test/blob/main/bot-api.md) [Q & A](https://huggingface.co/spaces/baixing/hackathon_test/blob/main/qna.md)
|
32 |
"""
|
33 |
)
|
|
|
3 |
import requests
|
4 |
|
5 |
# 如果你只打算通过 prompt 来定制机器人的行为,只需要修改这段 prompt 就够了。
|
6 |
+
prompt = """请你扮演一位专业领域专家,检索网络上所有信息
|
7 |
+
给出具有可靠来源的答案
|
8 |
########
|
9 |
|
10 |
|
|
|
27 |
iface = gr.Interface(fn=chat,
|
28 |
inputs=["text", "text", "text"],
|
29 |
outputs=["text", "text"],
|
30 |
+
description="""这是一个极其简单的示范程序,给你专家级可靠回答。
|
31 |
[对话测试](https://huggingface.co/spaces/BaixingAI/hackathon_test) [参考文档](https://huggingface.co/spaces/baixing/hackathon_test/blob/main/bot-api.md) [Q & A](https://huggingface.co/spaces/baixing/hackathon_test/blob/main/qna.md)
|
32 |
"""
|
33 |
)
|