Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
| 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 |
|