dinhquangson commited on
Commit
c92562c
1 Parent(s): f990a3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def generate_embeddings(dataset, text_field, batch_size=32):
68
  return embeddings
69
 
70
  @app.post("/uploadfile/")
71
- async def create_upload_file(file: UploadFile = File(...), text_field: string):
72
  file_savePath = join(temp_path,file.filename)
73
 
74
  with open(file_savePath,'wb') as f:
 
68
  return embeddings
69
 
70
  @app.post("/uploadfile/")
71
+ async def create_upload_file(text_field: str, file: UploadFile = File(...)):
72
  file_savePath = join(temp_path,file.filename)
73
 
74
  with open(file_savePath,'wb') as f: