Fred808 commited on
Commit
c4def43
·
verified ·
1 Parent(s): b5dfc9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -82,3 +82,6 @@ if __name__ == "__main__":
82
  print(f"\n[FRAME {idx+1}] Analyzing: {frame_path}")
83
  caption = analyze_frame(frame_path)
84
  print(f"[RESULT] {caption}")
 
 
 
 
82
  print(f"\n[FRAME {idx+1}] Analyzing: {frame_path}")
83
  caption = analyze_frame(frame_path)
84
  print(f"[RESULT] {caption}")
85
+ import uvicorn
86
+ port = int(os.getenv("PORT", 7860)) # Spaces set PORT env var
87
+ uvicorn.run("app:app", host="0.0.0.0", port=port)