Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,6 @@ def extract_text_from_pdf(file):
|
|
| 81 |
def translate_text(text, target_lang):
|
| 82 |
translation_prompt = f"Translate the following text into {target_lang}:\n\n{text}"
|
| 83 |
|
| 84 |
-
{text}"
|
| 85 |
try:
|
| 86 |
response = client.chat.completions.create(
|
| 87 |
model="gpt-3.5-turbo",
|
|
|
|
| 81 |
def translate_text(text, target_lang):
|
| 82 |
translation_prompt = f"Translate the following text into {target_lang}:\n\n{text}"
|
| 83 |
|
|
|
|
| 84 |
try:
|
| 85 |
response = client.chat.completions.create(
|
| 86 |
model="gpt-3.5-turbo",
|