Spanicin commited on
Commit
0664438
·
verified ·
1 Parent(s): a7f1820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -317,7 +317,7 @@ def translate_text(text_prompt, target_language):
317
  def openai_chat_avatar(text_prompt):
318
  response = client.chat.completions.create(
319
  model="gpt-4o-mini",
320
- messages=[{"role": "system", "content": "Answer in Portuguese language always using the minimum words you can ever use."},
321
  {"role": "user", "content": f"Hi! I need help with something. Can you assist me with the following: {text_prompt}"},
322
  ],
323
  max_tokens = len(text_prompt) + 300 # Use the length of the input text
 
317
  def openai_chat_avatar(text_prompt):
318
  response = client.chat.completions.create(
319
  model="gpt-4o-mini",
320
+ messages=[{"role": "system", "content": "Answer in English language always using the minimum words you can ever use."},
321
  {"role": "user", "content": f"Hi! I need help with something. Can you assist me with the following: {text_prompt}"},
322
  ],
323
  max_tokens = len(text_prompt) + 300 # Use the length of the input text