mikaelbhai commited on
Commit
b6c9c83
1 Parent(s): 5f3fa02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -3,10 +3,7 @@ import gradio as gr
3
 
4
  openai.api_key = "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"
5
 
6
- messages = [{"role": "system", "content": "you are chatGPT"}]
7
-
8
  def openai_chat(prompt):
9
- messages.append({"role": "user", "content": user_input})
10
  completions = openai.Completion.create(
11
  engine="text-davinci-003",
12
  prompt=prompt,
 
3
 
4
  openai.api_key = "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"
5
 
 
 
6
  def openai_chat(prompt):
 
7
  completions = openai.Completion.create(
8
  engine="text-davinci-003",
9
  prompt=prompt,