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

Update radio_check_app.py

Browse files
Files changed (1) hide show
  1. radio_check_app.py +3 -3
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
- 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):
 
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):