feiyang-cai commited on
Commit
b1e4cef
·
verified ·
1 Parent(s): cdc1014

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def predict_file(file, property_name):
91
  except Exception as e:
92
  # no matter what the error is, we should return
93
  print(e)
94
- return None, None, gr.update(visible=False), file, "Prediction failed"
95
 
96
  return gr.update(visible=False), gr.DownloadButton(label="Download", value=prediction_file, visible=True), gr.update(visible=False), prediction_file, "Prediction is done"
97
 
 
91
  except Exception as e:
92
  # no matter what the error is, we should return
93
  print(e)
94
+ return gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), file, "Prediction failed"
95
 
96
  return gr.update(visible=False), gr.DownloadButton(label="Download", value=prediction_file, visible=True), gr.update(visible=False), prediction_file, "Prediction is done"
97