Spaces:
Running
Running
Update app.py
Browse files
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
|
|
|
|
|
|
|
|
|
|
|
|