Sg-at-srijan-us-kg commited on
Commit
d6f3459
1 Parent(s): 8b5c0e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ def handle_file_upload(file_obj):
29
  return "No file uploaded."
30
 
31
  try:
32
- content = file_obj
 
33
  try:
34
  file_content = content.decode('utf-8')
35
  except UnicodeDecodeError:
 
29
  return "No file uploaded."
30
 
31
  try:
32
+ # Read file content
33
+ content = file_obj.read()
34
  try:
35
  file_content = content.decode('utf-8')
36
  except UnicodeDecodeError: