ArthurGamaJorge commited on
Commit
0d8539a
·
1 Parent(s): 936b704

Corrigir código

Browse files
Files changed (1) hide show
  1. api/app.py +0 -8
api/app.py CHANGED
@@ -233,11 +233,3 @@ def predict_batch(body: BatchBody, request: Request):
233
  except Exception as e:
234
  traceback.print_exc()
235
  raise HTTPException(status_code=500, detail=str(e))
236
-
237
-
238
- if __name__ == "__main__":
239
- # When running this module directly, start uvicorn with the `app` object defined in this file.
240
- # Use reload=True for development; in production it's better to remove reload.
241
- import uvicorn
242
- uvicorn.run("api.app:app", host="0.0.0.0", port=8000, reload=True)
243
-
 
233
  except Exception as e:
234
  traceback.print_exc()
235
  raise HTTPException(status_code=500, detail=str(e))