Spaces:
Runtime error
Runtime error
Summarise as a paragraph and extract all named entities
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ openai.api_key = "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"
|
|
9 |
def chatbot(input):
|
10 |
messages = []
|
11 |
if input:
|
12 |
-
context = "Summarise the following input
|
13 |
messages.append({"role": "user", "content": context + input})
|
14 |
chat = openai.ChatCompletion.create(
|
15 |
model="gpt-3.5-turbo", messages=messages
|
|
|
9 |
def chatbot(input):
|
10 |
messages = []
|
11 |
if input:
|
12 |
+
context = "Summarise the following input in one paragrph and extract all named entities as a python list:"
|
13 |
messages.append({"role": "user", "content": context + input})
|
14 |
chat = openai.ChatCompletion.create(
|
15 |
model="gpt-3.5-turbo", messages=messages
|