Spaces:
Sleeping
Sleeping
add chunk size function
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ def summary_translate(src_text, temp_tgt_text, tgt_language):
|
|
177 |
translations = []
|
178 |
for prompt_style in system_prompts:
|
179 |
prompt = f"### Rephrase the following in {tgt_language}."
|
180 |
-
prompt += f"\n### Input:\n {
|
181 |
prompt += f"\n### Rephrased:\n"
|
182 |
translation = generate_translation(prompt_style, prompt)
|
183 |
translations.append(translation)
|
|
|
177 |
translations = []
|
178 |
for prompt_style in system_prompts:
|
179 |
prompt = f"### Rephrase the following in {tgt_language}."
|
180 |
+
prompt += f"\n### Input:\n {temp_tgt_text}"
|
181 |
prompt += f"\n### Rephrased:\n"
|
182 |
translation = generate_translation(prompt_style, prompt)
|
183 |
translations.append(translation)
|