KuangDW commited on
Commit
1d1410b
·
1 Parent(s): 18ff227

add chunk function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -264,7 +264,7 @@ def mpc_translation(text, src_language, target_language, iterations, session_id)
264
  # ---------- Gradio function ----------
265
 
266
  def process_text(text, src_language, target_language, max_iterations_value, threshold_value,
267
- good_ref_contexts_num_value, translation_methods=None, state=None):
268
 
269
  translation_methods = translation_methods or ["Original", "Plan2Align"]
270
  session_id = get_user_session(state)
 
264
  # ---------- Gradio function ----------
265
 
266
  def process_text(text, src_language, target_language, max_iterations_value, threshold_value,
267
+ good_ref_contexts_num_value, translation_methods=None, chunk_size=-1, state=None):
268
 
269
  translation_methods = translation_methods or ["Original", "Plan2Align"]
270
  session_id = get_user_session(state)