Spaces:
Sleeping
Sleeping
Commit ·
9727e3a
1
Parent(s): ab8a95f
fix
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ def greet(image):
|
|
| 8 |
'Prediction-Key': '076c4e5d9fa94309bbfda7dd8af0f30d',
|
| 9 |
'Content-Type': 'application/octet-stream',
|
| 10 |
},
|
| 11 |
-
|
| 12 |
)
|
| 13 |
|
| 14 |
return r.text
|
|
|
|
| 8 |
'Prediction-Key': '076c4e5d9fa94309bbfda7dd8af0f30d',
|
| 9 |
'Content-Type': 'application/octet-stream',
|
| 10 |
},
|
| 11 |
+
files={'image': image.tobytes()},
|
| 12 |
)
|
| 13 |
|
| 14 |
return r.text
|