Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ openai.api_key = "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"
|
|
11 |
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 |
-
|
16 |
def openai_create(prompt):
|
17 |
|
18 |
response = openai.Completion.create(
|
|
|
11 |
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.Below is an instruction that describes a task. Write a response that appropriately completes the request"
|
16 |
def openai_create(prompt):
|
17 |
|
18 |
response = openai.Completion.create(
|