Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,8 +89,8 @@ def predict_count(input_image):
|
|
| 89 |
density_map_color = plt.cm.jet(density_map / np.max(density_map))
|
| 90 |
|
| 91 |
return predicted_count, density_map_color
|
| 92 |
-
from gradio.
|
| 93 |
-
from gradio.
|
| 94 |
input_interface = gr.inputs.Image(label="Input Image")
|
| 95 |
output_interface = [
|
| 96 |
Label(label="Predicted Count"),
|
|
|
|
| 89 |
density_map_color = plt.cm.jet(density_map / np.max(density_map))
|
| 90 |
|
| 91 |
return predicted_count, density_map_color
|
| 92 |
+
from gradio.components import Image
|
| 93 |
+
from gradio.components import Label, Image
|
| 94 |
input_interface = gr.inputs.Image(label="Input Image")
|
| 95 |
output_interface = [
|
| 96 |
Label(label="Predicted Count"),
|