Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
c92562c
1
Parent(s):
f990a3e
Update app.py
Browse files
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(...)
|
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:
|