SamMec commited on
Commit
b709ad3
·
verified ·
1 Parent(s): d8bae49

Update radio_check_app.py

Browse files
Files changed (1) hide show
  1. radio_check_app.py +2 -2
radio_check_app.py CHANGED
@@ -130,9 +130,9 @@ def get_image_embeddings_from_pil(pil_image):
130
  # Predict endpoint
131
  @app.post("/predict")
132
  async def predict(
133
- background_tasks: BackgroundTasks,
134
  text_input: str = Form(...),
135
- image_file: UploadFile = File(...)
 
136
  ):
137
  # Guard against queries hitting the server before models are fully loaded
138
  if None in (cross_att_classifier, text_model, image_model):
 
130
  # Predict endpoint
131
  @app.post("/predict")
132
  async def predict(
 
133
  text_input: str = Form(...),
134
+ image_file: UploadFile = File(...),
135
+ background_tasks: BackgroundTasks = BackgroundTasks()
136
  ):
137
  # Guard against queries hitting the server before models are fully loaded
138
  if None in (cross_att_classifier, text_model, image_model):