Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|