Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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}"
|