Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,7 @@ OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
|
8 |
USER=os.getenv('USER')
|
9 |
PASS=os.getenv('PASS')
|
10 |
|
11 |
-
|
12 |
-
{history}
|
13 |
-
User: {message}
|
14 |
-
Chatbot:"""
|
15 |
-
|
16 |
-
prompt = PromptTemplate(
|
17 |
-
input_variables=["history", "message"], template=template
|
18 |
-
)
|
19 |
|
20 |
def predict(message, history):
|
21 |
history_openai_format = []
|
|
|
8 |
USER=os.getenv('USER')
|
9 |
PASS=os.getenv('PASS')
|
10 |
|
11 |
+
prompt = "您是回ç”所有用户查询的得力助手,所有问题请用ä¸æ–‡å›žç”"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
def predict(message, history):
|
14 |
history_openai_format = []
|