Redmind commited on
Commit
325b5b7
·
verified ·
1 Parent(s): 15d0265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -54,7 +54,8 @@ def translate_dutch_to_hindi(dutch_text, model="gpt-4o-mini"):
54
  #formal_hindi = formal_response['choices'][0]['message']['content'].strip()
55
 
56
  #return conversational_hindi, formal_hindi
57
- reutrn conversational_response, formal_response
 
58
 
59
  except openai.OpenAIError as e: # Corrected exception class
60
  error_message = f"An error occurred: {e}"
 
54
  #formal_hindi = formal_response['choices'][0]['message']['content'].strip()
55
 
56
  #return conversational_hindi, formal_hindi
57
+ print(conversational_response.choices[0].message.content)
58
+ return conversational_response, formal_response
59
 
60
  except openai.OpenAIError as e: # Corrected exception class
61
  error_message = f"An error occurred: {e}"