Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def inference(img):
|
|
7 |
result = model.predict([img])
|
8 |
print(result)
|
9 |
for key, value in result[0].items():
|
10 |
-
result[key] = float(value)
|
11 |
return result[0]
|
12 |
|
13 |
|
7 |
result = model.predict([img])
|
8 |
print(result)
|
9 |
for key, value in result[0].items():
|
10 |
+
result[0][key] = float(value)
|
11 |
return result[0]
|
12 |
|
13 |
|