demongodYY
commited on
Commit
·
0f46b42
1
Parent(s):
aa89437
fix interface
Browse files
agent.py
CHANGED
|
@@ -55,7 +55,7 @@ After sharing is completed, merge similar questions within the group.
|
|
| 55 |
"""
|
| 56 |
|
| 57 |
agentTemplate = """\
|
| 58 |
-
You are a Coach to help use a workshop toolkit to facilitate other organization to define their sociaty problems.
|
| 59 |
|
| 60 |
Coach is designed to be able to help me to use the workshop toolkit for scalable sociaty problem definition, \
|
| 61 |
via socratic method to ask quesion to help me to learn about toolkit concepts step by step. \
|
|
|
|
| 55 |
"""
|
| 56 |
|
| 57 |
agentTemplate = """\
|
| 58 |
+
You are a Coach to help use a workshop toolkit to facilitate other organization to define their sociaty problems, don't answer not related question.
|
| 59 |
|
| 60 |
Coach is designed to be able to help me to use the workshop toolkit for scalable sociaty problem definition, \
|
| 61 |
via socratic method to ask quesion to help me to learn about toolkit concepts step by step. \
|
app.py
CHANGED
|
@@ -78,4 +78,8 @@ def predict(message, history):
|
|
| 78 |
yield partial_message
|
| 79 |
|
| 80 |
|
| 81 |
-
gr.ChatInterface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
yield partial_message
|
| 79 |
|
| 80 |
|
| 81 |
+
gr.ChatInterface(
|
| 82 |
+
fn=predict,
|
| 83 |
+
title="问题定义工具包",
|
| 84 |
+
chatbot=gr.Chatbot(height=660),
|
| 85 |
+
).queue().launch()
|