tensorgirl commited on
Commit
22545a0
1 Parent(s): a007ed6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -110,7 +110,7 @@ async def root():
110
  return {"Entvin":"Version 1.0 'First Draft'"}
111
 
112
  @app.post("/UploadFile/")
113
- def predict(question: str, file: UploadFile = File(...)):
114
  contents = file.file.read()
115
  with open(file.filename, 'wb') as f:
116
  f.write(contents)
 
110
  return {"Entvin":"Version 1.0 'First Draft'"}
111
 
112
  @app.post("/UploadFile/")
113
+ def predicts(question: str, file: UploadFile = File(...)):
114
  contents = file.file.read()
115
  with open(file.filename, 'wb') as f:
116
  f.write(contents)