Spaces:
Running
Running
Update predict.py
Browse files- predict.py +1 -5
predict.py
CHANGED
@@ -103,8 +103,4 @@ async def analyze_wounds(file: UploadFile = File(...)):
|
|
103 |
response.headers['X-Area-Cm2'] = str(area_cm2)
|
104 |
response.headers['X-Moisture'] = str(moisture)
|
105 |
return response
|
106 |
-
return {'error': 'Invalid file format'}
|
107 |
-
|
108 |
-
if __name__ == '__main__':
|
109 |
-
import uvicorn
|
110 |
-
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
103 |
response.headers['X-Area-Cm2'] = str(area_cm2)
|
104 |
response.headers['X-Moisture'] = str(moisture)
|
105 |
return response
|
106 |
+
return {'error': 'Invalid file format'}
|
|
|
|
|
|
|
|