Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def summarize_text(input_text):
|
|
| 41 |
|
| 42 |
def summarize_text_file(file):
|
| 43 |
if file is not None:
|
| 44 |
-
content = file.read()
|
| 45 |
return summarize_text(content)
|
| 46 |
|
| 47 |
|
|
|
|
| 41 |
|
| 42 |
def summarize_text_file(file):
|
| 43 |
if file is not None:
|
| 44 |
+
content = str(file.read(), 'utf-8')
|
| 45 |
return summarize_text(content)
|
| 46 |
|
| 47 |
|