ClemSummer commited on
Commit
5dafda7
·
1 Parent(s): 9682d12

Fix: update port to 8000 in main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -1
main.py CHANGED
@@ -44,4 +44,7 @@ async def generate(file: UploadFile = File(...)):
44
  shutil.copyfileobj(file.file, buffer)
45
 
46
  captions = caption_generator.generate_caption(temp_file)
47
- return captions
 
 
 
 
44
  shutil.copyfileobj(file.file, buffer)
45
 
46
  captions = caption_generator.generate_caption(temp_file)
47
+ return captions
48
+
49
+ if __name__ == "__main__":
50
+ uvicorn.run(app, host="0.0.0.0", port=8000)