tony346 commited on
Commit
6d6fc30
1 Parent(s): c051029

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def handle_userinput(user_question):
81
  "{{MSG}}", message.content), unsafe_allow_html=True)
82
 
83
  def get_text_file(docs):
84
- text = f.read()
85
  return text
86
 
87
  def get_csv_file(docs):
 
81
  "{{MSG}}", message.content), unsafe_allow_html=True)
82
 
83
  def get_text_file(docs):
84
+ text = docs.read().decode("utf-8")
85
  return text
86
 
87
  def get_csv_file(docs):