Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def predict_image(image):
|
|
| 31 |
|
| 32 |
# Define the prediction result
|
| 33 |
result = {
|
| 34 |
-
"prediction":
|
| 35 |
}
|
| 36 |
|
| 37 |
return result
|
|
@@ -54,7 +54,7 @@ output_interface = "json"
|
|
| 54 |
iface = gr.Interface(
|
| 55 |
fn=predict_image,
|
| 56 |
inputs=input_interface,
|
| 57 |
-
outputs=
|
| 58 |
|
| 59 |
# Launch the interface
|
| 60 |
iface.launch(share=True)
|
|
|
|
| 31 |
|
| 32 |
# Define the prediction result
|
| 33 |
result = {
|
| 34 |
+
"prediction": probability_good
|
| 35 |
}
|
| 36 |
|
| 37 |
return result
|
|
|
|
| 54 |
iface = gr.Interface(
|
| 55 |
fn=predict_image,
|
| 56 |
inputs=input_interface,
|
| 57 |
+
outputs=output_interface)
|
| 58 |
|
| 59 |
# Launch the interface
|
| 60 |
iface.launch(share=True)
|