albhu commited on
Commit
19d6da7
verified
1 Parent(s): 7f98a14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- printable = set(string.printable)
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 = ""