Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
21 |
# Function to call OpenAI API to refine and translate text
|
22 |
def refine_text(prompt):
|
23 |
response = openai.ChatCompletion.create(
|
24 |
-
model="gpt-
|
25 |
messages=[
|
26 |
{"role": "system", "content": "You are an assistant that refines text to make it conversational and natural. If the question is in Swahili, respond in Swahili."},
|
27 |
{"role": "user", "content": prompt}
|
|
|
21 |
# Function to call OpenAI API to refine and translate text
|
22 |
def refine_text(prompt):
|
23 |
response = openai.ChatCompletion.create(
|
24 |
+
model="gpt-3.5-turbo-16k",
|
25 |
messages=[
|
26 |
{"role": "system", "content": "You are an assistant that refines text to make it conversational and natural. If the question is in Swahili, respond in Swahili."},
|
27 |
{"role": "user", "content": prompt}
|