Spaces:
Paused
Paused
add chunk function
Browse files
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)
|