acecalisto3 commited on
Commit
26b2124
·
verified ·
1 Parent(s): 0015b39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -74,10 +74,4 @@ def function1(code):
74
  openai.api_key = 'YOUR_OPENAI_API_KEY'
75
  response = openai.Completion.create(
76
  engine='code-davinci-002',
77
- prompt=f'Translate this Python code to executable code: {code}',
78
- temperature=0.5,
79
- max_tokens=512,
80
- top_p=1,
81
- frequency_penalty=0.5,
82
- presence_penalty=0,
83
- stop=['
 
74
  openai.api_key = 'YOUR_OPENAI_API_KEY'
75
  response = openai.Completion.create(
76
  engine='code-davinci-002',
77
+ prompt=f'Translate this Python code to executable code: {code}\n