Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2", trust_remo
|
|
20 |
|
21 |
# Karaktertiszt铆t贸 f眉ggv茅ny
|
22 |
def clean_text(text):
|
23 |
-
|
24 |
-
cleaned_text = ''.join(filter(lambda x: x in printable, text))
|
25 |
return cleaned_text
|
26 |
|
|
|
27 |
# Dokumentumfeldolgoz贸 f眉ggv茅ny
|
28 |
def process_document(document_file):
|
29 |
document_text = ""
|
|
|
20 |
|
21 |
# Karaktertiszt铆t贸 f眉ggv茅ny
|
22 |
def clean_text(text):
|
23 |
+
cleaned_text = ''.join(filter(lambda x: x in string.printable, text))
|
|
|
24 |
return cleaned_text
|
25 |
|
26 |
+
|
27 |
# Dokumentumfeldolgoz贸 f眉ggv茅ny
|
28 |
def process_document(document_file):
|
29 |
document_text = ""
|