Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,12 +4,11 @@ import os
|
|
4 |
|
5 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
6 |
|
7 |
-
MODEL = gpt-3.5-turbo
|
8 |
|
9 |
def generate_response(text):
|
10 |
prompt = f"Code generation:\n\n```python\n{text}\n```"
|
11 |
response = openai.Completion.create(
|
12 |
-
model=
|
13 |
prompt=prompt,
|
14 |
max_tokens=3000,
|
15 |
n=1,
|
|
|
4 |
|
5 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
6 |
|
|
|
7 |
|
8 |
def generate_response(text):
|
9 |
prompt = f"Code generation:\n\n```python\n{text}\n```"
|
10 |
response = openai.Completion.create(
|
11 |
+
model=gpt-3.5-turbo,
|
12 |
prompt=prompt,
|
13 |
max_tokens=3000,
|
14 |
n=1,
|