KuangDW commited on
Commit
dbfc6d2
·
1 Parent(s): 0e34976

add chunk size function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 {textemp_tgt_textt}"
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)