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

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: str):
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(file: UploadFile = File(...), text_field: string):
72
  file_savePath = join(temp_path,file.filename)
73
 
74
  with open(file_savePath,'wb') as f: