nabeelraza commited on
Commit
bf1669d
·
1 Parent(s): 372c024
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  def predict(file):
6
  # print(file.name)
7
  # print(file)
8
- with open(file.name, 'r', encoding="utf-8") as f:
9
  print(f.read())
10
  print("=====================================")
11
  ans = make_prediction(file.name)
 
5
  def predict(file):
6
  # print(file.name)
7
  # print(file)
8
+ with open(file.name, 'rb') as f:
9
  print(f.read())
10
  print("=====================================")
11
  ans = make_prediction(file.name)