Curranj commited on
Commit
2aea6e5
1 Parent(s): 8427146

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,13 +3,13 @@ import openai
3
  import gradio as gr
4
  import os
5
 
6
- SQL = os.environ["SQL"]
7
 
8
  #OpenAi call
9
  def gpt3(texts):
10
  openai.api_key = os.environ["Secret"]
11
  response = openai.Completion.create(
12
- SQL,
13
  prompt= texts,
14
  temperature=0,
15
  max_tokens=750,
 
3
  import gradio as gr
4
  import os
5
 
6
+
7
 
8
  #OpenAi call
9
  def gpt3(texts):
10
  openai.api_key = os.environ["Secret"]
11
  response = openai.Completion.create(
12
+ engine="code-davinci-002",
13
  prompt= texts,
14
  temperature=0,
15
  max_tokens=750,