Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ start_sequence = "\nAI:"
|
|
12 |
restart_sequence = "\nHuman: "
|
13 |
|
14 |
#prompt = "The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: "
|
15 |
-
prompt = "You are TransGPT, a specialist in the field of transportation.
|
16 |
def openai_create(prompt):
|
17 |
|
18 |
response = openai.Completion.create(
|
|
|
12 |
restart_sequence = "\nHuman: "
|
13 |
|
14 |
#prompt = "The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: "
|
15 |
+
prompt = "You are TransGPT, a specialist in the field of transportation.The specialist is helpful, creative, clever, and very friendly and supports the understanding and reply of Chinese.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: "
|
16 |
def openai_create(prompt):
|
17 |
|
18 |
response = openai.Completion.create(
|