amougou-fortiss commited on
Commit
bb66f7f
·
verified ·
1 Parent(s): a9aa916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def reverse():
21
  return f"<p>Reversed: {text[::-1]}</p><a href='/'>Try again</a>"
22
 
23
  @app.route('/preprocess_text_with_nlp_llm', methods=['POST'])
24
- def preprocess_text_with_nlp_llm():
25
  text = request.form.get('text', '')
26
  doc = nlp(text)
27
  # Enhanced tokenization and lemmatization with POS tags
 
21
  return f"<p>Reversed: {text[::-1]}</p><a href='/'>Try again</a>"
22
 
23
  @app.route('/preprocess_text_with_nlp_llm', methods=['POST'])
24
+ def preprocess_text_with_nlp_llm(max_chunk_size=512, overlap=50):
25
  text = request.form.get('text', '')
26
  doc = nlp(text)
27
  # Enhanced tokenization and lemmatization with POS tags