Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def extract_text_from_image(image, api_key):
|
|
36 |
|
37 |
|
38 |
|
39 |
-
def translate_text_with_solar(
|
40 |
"""
|
41 |
Function to translate Korean text into English (using Upstage Solar Pro API)
|
42 |
"""
|
@@ -51,7 +51,7 @@ def translate_text_with_solar(english_text, api_key):
|
|
51 |
Below is a handwritten letter in Korean.\n
|
52 |
{korean_text} \n
|
53 |
Please translate it into English.\n\n
|
54 |
-
Translated letter in English:
|
55 |
"""
|
56 |
|
57 |
# Call Solar LLM to perform translation
|
|
|
36 |
|
37 |
|
38 |
|
39 |
+
def translate_text_with_solar(korean_text, api_key):
|
40 |
"""
|
41 |
Function to translate Korean text into English (using Upstage Solar Pro API)
|
42 |
"""
|
|
|
51 |
Below is a handwritten letter in Korean.\n
|
52 |
{korean_text} \n
|
53 |
Please translate it into English.\n\n
|
54 |
+
Translated letter in English:
|
55 |
"""
|
56 |
|
57 |
# Call Solar LLM to perform translation
|