Mustafa Al Hamad commited on
Commit
9fb7507
·
1 Parent(s): 9a92a09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -48,6 +48,8 @@ def measures(predicted, y_test):
48
  return accuracy
49
 
50
  def greet(operation,filer):
 
 
51
  import os
52
  coset = pd.read_csv(filer.name)
53
  coset = coset.dropna(how='any')
 
48
  return accuracy
49
 
50
  def greet(operation,filer):
51
+ if filer == None:
52
+ return None,"Invalid file submitted"
53
  import os
54
  coset = pd.read_csv(filer.name)
55
  coset = coset.dropna(how='any')