lyimo commited on
Commit
732e754
1 Parent(s): be2dfa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-4",
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}