abischoff commited on
Commit
71cea0c
·
verified ·
1 Parent(s): 02aa597

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -25,10 +25,10 @@ def checker(content):
25
  # Funktion zur Verarbeitung der hochgeladenen Datei
26
  def process_file(file):
27
  if file:
28
- #with open(file.name, 'r', encoding='utf-8') as f:
29
- # content = f.read()
30
- with open(file.name, 'rb') as f:
31
- content = pickle.load(f)
32
  return content
33
  return "Datei konnte nicht gelesen werden"
34
 
 
25
  # Funktion zur Verarbeitung der hochgeladenen Datei
26
  def process_file(file):
27
  if file:
28
+ with open(file.name, 'r', encoding='utf-8') as f:
29
+ content = f.read()
30
+ #with open(file.name, 'rb') as f:
31
+ # content = pickle.load(f)
32
  return content
33
  return "Datei konnte nicht gelesen werden"
34