Spaces:
Running
Running
yizhangliu
commited on
Commit
•
384748d
1
Parent(s):
1e89a07
Update app.py
Browse files
app.py
CHANGED
@@ -334,7 +334,7 @@ transform = transforms.Compose([
|
|
334 |
def read_content(file_path):
|
335 |
"""read the content of target file
|
336 |
"""
|
337 |
-
with open(file_path, 'rb'
|
338 |
content = f.read()
|
339 |
|
340 |
return content
|
|
|
334 |
def read_content(file_path):
|
335 |
"""read the content of target file
|
336 |
"""
|
337 |
+
with open(file_path, 'rb') as f:
|
338 |
content = f.read()
|
339 |
|
340 |
return content
|