Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,11 @@ import gradio as gr
|
|
6 |
|
7 |
model="gpt-3.5-turbo"
|
8 |
|
|
|
|
|
|
|
9 |
def get_completion(prompt):
|
10 |
-
messages = [{"role": "user", "content": prompt}]
|
11 |
response = openai.ChatCompletion.create(
|
12 |
model=model,
|
13 |
messages=messages,
|
|
|
6 |
|
7 |
model="gpt-3.5-turbo"
|
8 |
|
9 |
+
task = " Produce a project scope table for introducing AI in tertiary education. In tabular format."
|
10 |
+
default_input = "I am looking to elevate our assessments and enable lecturers to develop more authentic assessments."
|
11 |
+
|
12 |
def get_completion(prompt):
|
13 |
+
messages = [{"role": "user", "content": prompt + task}]
|
14 |
response = openai.ChatCompletion.create(
|
15 |
model=model,
|
16 |
messages=messages,
|